.bashrc
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias f='open -a Finder ./'
alias ll="ls -hlAFG"
alias cls="clear screen"
alias g='git'
alias gd='git diff'
alias gb='git branch'
alias gc='git checkout'
alias gcb='git checkout -b'
alias gs='git status'
alias gplu='git pull upstream'
alias gplo='git pull origin'
alias gplom='git pull origin master'
alias gps='git push origin'
alias gf='git fetch'
alias less='less -FSRXc'
alias ru='react-native unlink'
alias rl='react-native link'
alias nr='npm run'
alias nrd='npm run dev'
alias ni='npm install'
alias src='source ~/.bashrc'
alias spro='souece ~/.bash_profile'
alias dc='docker-compose'
alias bashrc='vim ~/.bashrc'
alias bashprofile='vim ~/.bash_profile'
## 誤字が多いからエイリアス化する
alias gti='git'
gitコマンドの省略系が多い
cls
は結構使ってる
.gitconfig
[alias]
diff = diff --color | diff-so fancy
graph = log --decorate --graph --name-status --oneline
for-author = for-each-ref --sort=authorname --format='"%(committerdate:short)","%(authorname)","%(refname:short)"' refs/remotes --merged
for-commitdate = for-each-ref --sort=committerdate --format='"%(committerdate:short)","%(authorname)","%(refname:short)"' refs/remotes --merged
cp = cherry-pick
master = !git checkout master && git pull origin master
save = stash save -u
changelog = !$HOME/.gittag-changelog/src/gittag_changelog.py
-
for-author
,for-commitdate
はgit fetch origin -p
で取得したマージ済みのブランチを作成者(author)順か作成日(commitdate)順で表示するものです。ブランチ消す時とかに使います。 -
master
は頻繁に使ってます。