Created
March 16, 2012 06:21
-
-
Save trongthanh/2048765 to your computer and use it in GitHub Desktop.
Git commands to pull remote and merge with current branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# save current changes (if any) to stash | |
git stash save | |
# pull remote changes to local | |
git pull origin | |
# apply stash and try auto merge | |
git stash pop | |
# OR | |
git stash apply | |
# if there are conflicts, use mergetool | |
git mergetool | |
#then choose 'meld' (install meld before hand) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment