DEV Community

Discussion on: Git commands to keep a fork up to date

Collapse
 
philnash profile image
Phil Nash

That is true, though when you clone a repo the default upstream is normally set to origin master. This is useful if you want to work on a different remote branch.

When I push a branch that I want to make into a pull request, I normally do git push -u origin new-branch which allows me to easily make updates to that branch.

Thanks for adding the tip!