Created
June 30, 2022 10:26
-
-
Save antongaenko/c5472b65807f6b14650338abaab8f3af to your computer and use it in GitHub Desktop.
My bash and 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
# git | |
alias gs='clear | git status -u' | |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" | |
alias glon="git log --pretty=oneline" | |
alias gph='git push' | |
alias gpo='git push --set-upstream origin' | |
alias gpt='git format-patch' | |
#git format-patch cc1dde0dd^..6de6d4b06 --stdout > foo.patch | |
#git am foo.patch | |
alias gpl='git pull --rebase --prune' | |
alias gm='git commit -m' | |
alias gma='git commit -am' | |
alias add='git add' | |
alias gc='git checkout' | |
alias gb='git branch' | |
alias gba='git branch -a' | |
alias gcb='git checkout -b' | |
alias diff='clear | git diff' | |
alias diffs='diff --staged' | |
alias stash='git stash' | |
alias pop='git stash pop' | |
alias wip='git commit -m "wip"' | |
alias unstage='git restore --staged' | |
alias undo='git reset HEAD~1 --mixed' | |
alias amend='git commit -a --amend' | |
alias gam='git am --signoff <' | |
alias gac='git apply --check' | |
alias gas='git apply --stat' | |
alias glns='git log --name-only --oneline' | |
alias gsh='git show' | |
alias glfs='git lfs install --local' | |
alias patch='git diff > hctap.patch' | |
alias rbs='git rebase' | |
alias track='gc --track' | |
alias gcln='git clean -f' | |
alias gclnd='git clean -fd' | |
alias pi='bundle exec pod install' | |
# xcode | |
alias ddc='rm -rf /Users/a/Library/Developer/Xcode/DerivedData/*' | |
alias dd='cd /Users/a/Library/Developer/Xcode/DerivedData' | |
alias rec='xcrun simctl io booted recordVideo ' | |
#xip -x Xcode_12.1_GM_seed.xip | |
# base | |
alias reload='. ~/.bash_profile' | |
alias c='pbcopy' | |
alias v='pbpaste' | |
alias hg='history | grep' | |
alias e='echo' | |
alias f='find . -name ' | |
alias fr='find . -regex' | |
alias energy="sudo powermetrics -i 1000 --poweravg 1 | grep 'Average cumulatively decayed power score' -A 20" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment