Skip to content

Instantly share code, notes, and snippets.

@Svel
Created April 3, 2012 02:34
Show Gist options
  • Save Svel/2288892 to your computer and use it in GitHub Desktop.
Save Svel/2288892 to your computer and use it in GitHub Desktop.
git workflow production commit
# Inspired from https://www.braintreepayments.com/braintrust/our-git-workflow
# and some https://www.google.com/search?q=git%20workflow&hl=en searching
#
git checkout master
git merge --squash dev
msg="Version XXX";log=$(git log --format=" * %s" dev ^$(git log --merges -n 1 dev --format="%H")); echo -e "$msg\n\n$log" | git commit -F-
git checkout dev && git merge master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment