Skip to content

Instantly share code, notes, and snippets.

@ApoTheOne
Last active January 24, 2019 09:39
Show Gist options
  • Save ApoTheOne/89c6b1b2e2bbc91d90b01c6db17021cf to your computer and use it in GitHub Desktop.
Save ApoTheOne/89c6b1b2e2bbc91d90b01c6db17021cf to your computer and use it in GitHub Desktop.
Alias
alias gs="git status"
alias gal="git add ."
alias gac="git add . && git commit -m" # + commit message
alias gct="git commit -m"
alias gc="git checkout"
alias gcb="git checkout -b"
alias gpl="git pull"
alias gph="git push"
alias glg="git log"
alias glgp="git log --pretty=format:\"%h %s\" --graph"
alias gacm="!git add. && git commit -am"
alias guns="git reset --soft HEAD~1"
alias gunh="git reset --hard HEAD~1"
alias gunf="git reset HEAD"
alias cls="clear"
alias reload=". ~/.bashrc" # "source ~/.bashrc" # "exec bash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment