Created
February 21, 2019 06:04
-
-
Save mkstayalive/0004cfbb095149f1cea2c71fb0478c97 to your computer and use it in GitHub Desktop.
My 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
# This is Git's per-user configuration file. | |
[user] | |
email = [email protected] | |
name = Manish Singh | |
[alias] | |
dev = !export tmp_cur_branch=\"$(git rev-parse --abbrev-ref HEAD)\" && git checkout dev && git pull origin dev && git checkout $tmp_cur_branch && git merge dev && git push origin $tmp_cur_branch | |
devwip = !export tmp_cur_branch=\"$(git rev-parse --abbrev-ref HEAD)\" && git checkout dev && git pull origin dev && git checkout $tmp_cur_branch && git merge dev | |
cpush = "!f() { export tmp_cur_branch=\"$(git rev-parse --abbrev-ref HEAD)\" && git add . && git commit -i -m \"$tmp_cur_branch $1\" . && git push origin $tmp_cur_branch; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment