![]() Branch branchName set up to track remote branch branchName from origin. You update/set an upstream with the branch command. ![]() git branch -u origin/branchName # or git branch -set-upstream-to=origin/master master ![]() To push your changes into your remote repo, execute the git push command:Ĥ. Now that the remote and local repositories can interact seamlessly, you can continue to commit code locally, push changes to the remote GitHub server, and begin to manage your source code in a distributed manner.For example: #set a new remote Two ways, 1.git remote add my_awesome_new_remote_repo # or 2.git remote add origin #Verify new remote git remote -v > my_awesome_new_remote_repo (fetch) my_awesome_new_remote_repo (push) origin (fetch) origin (push)
0 Comments
Leave a Reply. |