Created
June 17, 2020 17:17
-
-
Save viggy28/9231aeec0571fb74028886de6e3b21c9 to your computer and use it in GitHub Desktop.
My .zshrc file
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
# ---------------------- | |
# Git Aliases | |
# ---------------------- | |
alias ga='git add' | |
alias gaa='git add .' | |
alias gaaa='git add --all' | |
alias gau='git add --update' | |
alias gb='git branch' | |
#alias gbc='git branch | awk '{if \($1 == "*") print $2}'\' | |
alias gbd='git branch --delete ' | |
alias gc='git commit' | |
alias gcm='git commit --message' | |
alias gcma='git commit --amend' | |
alias gcman='git commit --amend --no-edit' | |
alias gcf='git commit --fixup' | |
alias gco='git checkout' | |
alias gcom='git checkout master' | |
alias gcob='git checkout -b' | |
alias gcol='git checkout -' | |
alias gcom='git checkout master' | |
alias gcon='git config --list' | |
alias gconl='git config --local --list' | |
alias gcos='git checkout staging' | |
alias gcod='git checkout develop' | |
alias gd='git diff' | |
alias gda='git diff HEAD' | |
alias gi='git init' | |
alias glg='git log --graph --oneline --decorate --all' | |
alias gld='git log --pretty=format:"%h %ad %s" --date=short --all' | |
alias gm='git merge --no-ff' | |
alias gma='git merge --abort' | |
alias gmc='git merge --continue' | |
alias gp='git pull' | |
alias gpu='git push' | |
alias gpuf='git push -f' | |
alias gpr='git pull --rebase' | |
alias gr='git rebase' | |
alias gcb='git for-each-ref --sort=-committerdate --format="%(committerdate:short): %(refname:short)" refs/heads/ |head -1' | |
alias grb='git for-each-ref --sort=-committerdate --format="%(committerdate:short): %(refname:short)" refs/heads/ |head -10' | |
alias grm='git remote --v' | |
alias gs='git status' | |
gcl(){ | |
git clone "$1" | |
} | |
glf(){ | |
git log --follow -p "$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment