Skip to content

Instantly share code, notes, and snippets.

@snovakovic
Created February 13, 2019 22:42
Show Gist options
  • Save snovakovic/6762558707548ecd557f6cde90e47da0 to your computer and use it in GitHub Desktop.
Save snovakovic/6762558707548ecd557f6cde90e47da0 to your computer and use it in GitHub Desktop.
Small script to merge latest master code to provided feature branch (intended to be put in .bashrc file)
# In git controlled folder run from console as mergeMaster name-of-branch
mergeMaster() {
git checkout master &&
git pull &&
git checkout $1 &&
git pull &&
git merge master
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment