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] | |
outdated = "!f() { bash -c 'diff -u <(git branch --no-merged master) <(git branch --contains master) | egrep \"^- \"'; }; f" | |
update = "!f() { set -e; git checkout $1; git rebase master; git push -f origin $1; git checkout -; }; f" |
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
> git outdated | |
- some-pr-branch-not-up-to-date-with-master | |
> git update some-old-branch | |
(check out branch) | |
(rebase master) | |
(force push branch) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment