Last active
August 9, 2017 03:26
-
-
Save RoyalSix/58670a557c9b57dabb629efd5e6452b6 to your computer and use it in GitHub Desktop.
Shortcut to merge current branch into develop
This file contains 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
#!/bin/bash | |
# Usage: git md | |
# Goes in your bin folder, mine is /usr/bin/ | |
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) | |
git checkout origin/develop | |
git pull origin develop | |
npm run pull-apps | |
git checkout $BRANCH_NAME | |
git merge origin/develop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment