Last active
September 23, 2016 02:52
-
-
Save kokeiro001/f52c82bb384cd12268f96dcd4e589102 to your computer and use it in GitHub Desktop.
Git操作でよく忘れるやつとか
This file contains 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
# 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