Shell/Bash: connect local repository to remote git Example

By

Shell/Bash Example: This is the "connect local repository to remote git" Example. compiled from many sources on the internet by SimpleTutorials.org

how to connect remote repo with local repo

git remote add origin 
git push --all origin

If you want to set all of your branches to 
automatically use this remote repo when you use git pull, add --set-upstream to the push:

git push --all --set-upstream origin

connect local repository to remote git

git remote add origin 
# Sets the new remote
git remote -v
# Verifies the new remote URL
git push origin master

git connect to remote repository

git init
git commit -m "[message]"
git remote add origin "github repository link"
git push -u origin master


* Summary: This "connect local repository to remote git" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others