Skip to content

Instantly share code, notes, and snippets.

@sebinside
Last active December 27, 2023 15:52
Show Gist options
  • Save sebinside/8a384aacbc71ea7e193bde457c8662d9 to your computer and use it in GitHub Desktop.
Save sebinside/8a384aacbc71ea7e193bde457c8662d9 to your computer and use it in GitHub Desktop.
git simple alias
$ git config --get-regexp alias
alias.s status
alias.a add -A
alias.c commit -m
alias.l log --oneline
alias.p push
alias.cp "! cp() { git commit -a -m '$1' && git push ; } ; cp"
$ git config --global alias.xyz "xyz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment