Created
August 23, 2021 23:29
-
-
Save mendes5/98fe58a3a379b511645a103f2c5a5703 to your computer and use it in GitHub Desktop.
My GIT aliases
This file contains hidden or 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
| alias branch="git symbolic-ref --short HEAD" | |
| alias cki="git checkout \`recent | fzf | awk '{print \$1}'\`" | |
| alias pushn="git push origin \`branch\` --no-verify" | |
| alias push="git push origin \`branch\`" | |
| alias master="git checkout master" | |
| alias main="git checkout main" | |
| alias st="git status" | |
| alias changes="git diff --name-only HEAD master" | |
| alias bop='git stash pop' | |
| alias suc='git stash --keep-index --include-untracked' | |
| alias succ='suc' | |
| alias cbr="git status | awk 'NR==1{print \$3}'" | |
| alias cpbr="branch | pbcopy" | |
| alias cpbrs="pbcopy \"\`branch\`\"" | |
| alias cck="git checkout \`pbpaste\`" | |
| alias pull="git pull origin \`branch\`" | |
| alias recent="git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(color:reset)'|column -ts'|' | more" | |
| alias all="git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)'|column -ts'|' | more" | |
| alias brl="git checkout -" | |
| alias bry="git merge master" | |
| alias ftc="git fetch" | |
| alias nbr="git checkout -b" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment