git remote push
git remote add origin <repository url> # adds a repo to your project
git remote # lists all the repos of your project
git config --get remote.origin.url # prints the url of a repo
git push origin master # updates the master branch of your repo
git remote remove origin # removes the repo from your project
#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.