Last active
May 29, 2018 04:03
-
-
Save nhducit/d1daff3fd2737358cf7ca7c561eed541 to your computer and use it in GitHub Desktop.
rebase latest master for lazy people
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
#!/usr/bin/env bash | |
cd <projectDir> | |
currentBranch=$(git rev-parse --abbrev-ref HEAD) | |
git checkout master | |
git pull | |
git checkout $currentBranch | |
git rebase master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment