Skip to content

Instantly share code, notes, and snippets.

@piotrpersona
Last active November 2, 2022 12:02
Show Gist options
  • Save piotrpersona/f696a6977d40ef9dc1490bcf482da0d5 to your computer and use it in GitHub Desktop.
Save piotrpersona/f696a6977d40ef9dc1490bcf482da0d5 to your computer and use it in GitHub Desktop.
# git aliases
alias gc="git commit -sm"
alias gca="git commit -asm"
alias ga="git add"
alias gaa="git add ."
alias gp="git push"
alias gpa="git push -u origin (git rev-parse --abbrev-ref HEAD) --tags"
alias gm="git merge"
alias gch="git checkout"
alias gb="git branch"
alias gba="git branch -a"
alias gl="git log"
alias gs="git status"
alias gf="git fetch --all --tags"
alias gpl="git pull --rebase origin (git rev-parse --abbrev-ref HEAD)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment