Skip to content

Instantly share code, notes, and snippets.

@alfredormz
Created June 25, 2012 22:34
Show Gist options
  • Save alfredormz/2991863 to your computer and use it in GitHub Desktop.
Save alfredormz/2991863 to your computer and use it in GitHub Desktop.
Bash git merge helpers
merge_to() {
target=$1
branch_to_merge=$(branch)
git checkout ${target}
git merge --no-ff ${branch_to_merge}
}
merge_tod() {
target=$1
branch_to_merge=$(branch)
git checkout ${target}
git merge --no-ff ${branch_to_merge}
git branch -d ${branch_to_merge}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment