Created
August 4, 2014 08:58
-
-
Save bratchenko/cdb4cf49a8cd92aa3855 to your computer and use it in GitHub Desktop.
Git push to gerrit (put into ~/.gitconfig)
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] | |
pub = "!f() { git push -u ${1:-origin} HEAD:`git config branch.$(git name-rev --name-only HEAD).merge | sed -e 's@refs/heads/@refs/for/@'`; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment