Skip to content

Instantly share code, notes, and snippets.

@danpariente
Last active December 11, 2015 18:38
Show Gist options
  • Save danpariente/4642387 to your computer and use it in GitHub Desktop.
Save danpariente/4642387 to your computer and use it in GitHub Desktop.
My Git Flow
git checkout -b feature && git push -u
git commit -am "$COMMIT_MESSAGE"
git add $FILES_TO_ADD
git commit -m "$COMMIT_MESSAGE"
git add -p $PATH_TO_FILE
git diff master feature
git rebase master -i
( r, for reword if we want to edit the commit message and s, for squash if we want to squash that commit into the previous one)
git log feature
git checkout master
git merge feature/responsive --no-ff
git push
git tag v$VERSION_NUMBER && git push --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment