Created
February 1, 2019 19:18
-
-
Save ratbeard/f26d1a570082d5b1ba07903343f75284 to your computer and use it in GitHub Desktop.
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 | |
# | |
alias g='git' | |
alias gl="clear && git log" | |
alias gll="clear && git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" | |
alias glp="clear && git log -p" | |
alias gs="clear && git status -sb" | |
alias gd='clear && git diff --color-words' | |
alias gdc='clear && git diff --cached' | |
alias push="git push -u origin head" | |
alias PUSH="git push -f" | |
alias up="git checkout master && git pull && git dm" | |
alias stash='git stash -u' | |
alias pop='git stash pop' | |
alias pick='git cherry-pick' | |
# Commiting | |
function ga() { git add ${@:-.} } | |
alias gA="git add -A :/" | |
alias gap="clear && git add -p" | |
alias gc='git commit' | |
alias gca='git commit -a' | |
# Branches | |
alias gco='git checkout' | |
alias gb='git branch' | |
alias gbn='git checkout -b' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment