Created
May 30, 2013 14:50
-
-
Save jeremyf/5678459 to your computer and use it in GitHub Desktop.
A naive set of git aliases for pull requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
branch-current = rev-parse --symbolic-full-name --abbrev-ref HEAD | |
number-of-commits-since-master = "! sh -c 'git log master..`git branch-current` --oneline | wc -l | tr -d \" \"'" | |
squash = "! sh -c 'git rebase --interactive HEAD~`git number-of-commits-since-master`'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment