After the fork a project on github, synchronization update

Problem Description: I fork a project on github, himself made a few changes. People update, and how to follow up my fork of the project it?

# Fork project to keep pace with the upstream code base:
 
1. Add the remote source code library upstream of the Fork code library (operating time can be, not necessarily after each addition)
 
the Add Remote upstream git git: // github.com/username/upstream  #upstream indicate the name of the upstream code base
 
2. Local modify and submit (commit)
 
3. Perform the following operations before each Pull Request, and synchronization can be achieved upstream of the repository.
 
git remote update upstream
git rebase upstream / master # branch if not master, the master to make the corresponding branch name, while before the rebase git checkout switching command to the appropriate local branch
 
4. Push the code to Github
 
git push

Reproduced in: https: //my.oschina.net/chbing/blog/198871

Guess you like

Origin blog.csdn.net/weixin_33922670/article/details/91755654