Skip to content

Instantly share code, notes, and snippets.

@mkstayalive
Created February 21, 2019 06:04
Show Gist options
  • Save mkstayalive/0004cfbb095149f1cea2c71fb0478c97 to your computer and use it in GitHub Desktop.
Save mkstayalive/0004cfbb095149f1cea2c71fb0478c97 to your computer and use it in GitHub Desktop.
My Gitconfig
# 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