Skip to content

Instantly share code, notes, and snippets.

@abhijithvijayan
Last active September 9, 2018 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhijithvijayan/9e64e911c637724064569053e4a7783c to your computer and use it in GitHub Desktop.
Save abhijithvijayan/9e64e911c637724064569053e4a7783c to your computer and use it in GitHub Desktop.
Keep a branch in sync with master

1.Switch to master branch

git checkout master
git pull

2. Switch to other branch (eg: remote_br)

git checkout remote_br
git merge master

3.Push your changes

git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment