Skip to content

Instantly share code, notes, and snippets.

@kokeiro001
Last active September 23, 2016 02:52
Show Gist options
  • Save kokeiro001/f52c82bb384cd12268f96dcd4e589102 to your computer and use it in GitHub Desktop.
Save kokeiro001/f52c82bb384cd12268f96dcd4e589102 to your computer and use it in GitHub Desktop.
Git操作でよく忘れるやつとか
# modified状態のファイルの全てをassume-unchangedにする
git status | grep modified: | awk '{print $2}' | xargs git update-index --assume-unchanged
# git assume-unchangedに登録されてる全てを解除する
git ls-files -v | grep ^h | cut -c 3- | xargs git update-index --no-assume-unchanged
# developにマージされたローカルブランチを全て削除する(from http://qiita.com/kyanny/items/10a57a4f1d2806e3a3b8)
git branch --merged | grep -v '*' | xargs -I % git branch -d %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment