LoginSignup
2
1

More than 3 years have passed since last update.

alias晒す

Last updated at Posted at 2019-07-30
.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-commitdategit fetch origin -pで取得したマージ済みのブランチを作成者(author)順か作成日(commitdate)順で表示するものです。ブランチ消す時とかに使います。
  • masterは頻繁に使ってます。
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1