Hatim
4
Q:

git push repo

# Once a repo is cloned, you'll be working inside of the default branch (the default is `master`)
git clone https://github.com/<git-user>/<repo-name> && cd <repo-name>
# make changes and stage your files (repeat the `git add` command for each file, or use `git add .` to stage all)
git add <filename>
# now commit your code
git commit -m "added some changes to my repo!"
# push changes in `master` branch to github
git push origin master
9
git remote add origin https://github.com/tqisjim/google-oauth.git
git push -u origin master
0
#At the command prompt, enter
#C:\workdir\RTX_Blinky>git init
git init
#Initialized empty Git repository in C:/workdir/RTX_Blinky/.git/
#Now, you have to add your remote repository to your working copy (note that this remote repository must already exist – please consult your Git server space provider for details):
#C:\workdir\RTX_Blinky>git remote add origin https://github.com/account/rtx_blinky.git
git remote add origin https://github.com/account/rtx_blinky.git
#Then add (stage) all files from the project:
#C:\workdir\RTX_Blinky>git add *
git add *
#warning: LF will be replaced by CRLF in Blinky.uvoptx.
#The file will have its original line endings in your working directory.
#warning: LF will be replaced by CRLF in Blinky.uvprojx.
#The file will have its original line endings in your working directory.
#Commit all files and add a description for the commit:
#C:\workdir\RTX_Blinky>git commit -m "Initial version"
git commit -m "Initial version"
#[master (root-commit) b71a02e] Initial version
#warning: LF will be replaced by CRLF in Blinky.uvoptx.
#The file will have its original line endings in your working directory.
#warning: LF will be replaced by CRLF in Blinky.uvprojx.
#The file will have its original line endings in your working directory.
#12 files changed, 5408 insertions(+)
#create mode 100644 Blinky.c
#Finally, push the files to the server:
#C:\workdir\RTX_Blinky>git push -u origin master
git push -u origin master
#Username/Password
#Counting objects: 19, done.
#Delta compression using up to 4 threads.
2
git push -u githubrepo master
1

New to Communities?

Join the community