Skip to content

Instantly share code, notes, and snippets.

@riscait
Last active July 7, 2019 11:05
Show Gist options
  • Save riscait/5f5ea074463c883b102d4bbe601dce3e to your computer and use it in GitHub Desktop.
Save riscait/5f5ea074463c883b102d4bbe601dce3e to your computer and use it in GitHub Desktop.
ホームディレクトリ用のMy .bashrc
# .bashrcを編集する
alias vibash='vi ~/.bashrc'
# .bashrcを更新する
alias rebash='source ~/.bashrc'
# Git
alias gst='git status'
alias gdf='git diff --staged'
alias gcm='git commit -m'
alias gcma='git commit --amend'
alias gad='git add'
alias gco='git checkout'
alias gcob='git checkout -b'
# 同名のリモートブランチにpush
alias gps='git push origin `git symbolic-ref --short HEAD`'
alias gpl='git pull origin'
alias glg='git log --graph'
alias grs='git reset --hard'
alias grb='git rebase -i'
alias gbr='git branch'
#Carthage
alias cartup='carthage update --platform ios'
# Xcode
# DerivedDataを削除する
alias delderi='rm -rf ~/Library/Developer/Xcode/DerivedData/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment