Skip to content

Instantly share code, notes, and snippets.

@RoyalSix
Last active August 9, 2017 03:26
Show Gist options
  • Save RoyalSix/58670a557c9b57dabb629efd5e6452b6 to your computer and use it in GitHub Desktop.
Save RoyalSix/58670a557c9b57dabb629efd5e6452b6 to your computer and use it in GitHub Desktop.
Shortcut to merge current branch into develop
#!/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