Created
August 28, 2020 09:13
-
-
Save NigelThorne/6ea669035535bd144c5e3354dc211d83 to your computer and use it in GitHub Desktop.
AzureDevops Git aliases
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] | |
pushu = !git push --set-upstream origin `git symbolic-ref --short HEAD` && git rpr | |
current-branch-name = !git rev-parse --abbrev-ref HEAD | |
current-branch-name-escaped = !git escape-url `git current-branch-name` | |
escape-url = "!f() { perl -MURI::Escape -e \"print uri_escape('"$*"');\"; }; f" | |
current-push-url = !git remote get-url --push origin | |
raise-pull-request = !sh -c \"echo -e \\\" \\nRaise a pull request here: \\n `git current-push-url`/pullrequestcreate?sourceRef=`git current-branch-name-escaped`&targetRef=master\\\"\" | |
rpr = raise-pull-request |
Author
NigelThorne
commented
Aug 28, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment