How do I update my local Git repository?

How do I update my local Git repository?
Answer
Update, then Work
  • Update your local repo from the central repo ( git pull upstream master ).
  • Make edits, save, git add , and git commit all in your local repo.
  • Push changes from local repo to your fork on github.com ( git push origin master )
  • Update the central repo from your fork ( Pull Request )
  • Repeat.
 

Tìm kiếm

Back
Top