-
-
Save dphoebus/2664b2ba554a9eb460b36d4035b217fb to your computer and use it in GitHub Desktop.
git example
This file contains hidden or 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
# Clean up backup and loose objects. | |
git for-each-ref --format='delete %(refname)' refs/original | git update-ref --stdin | |
git reflog expire --expire=now --all | |
git gc --prune=now | |
# 全ての履歴に .gitignore / .gitattributes を追加する | |
git filter-branch --index-filter "cp -t ./ ../.gitignore ../.gitattributes && git add .gitignore .gitattributes" -f -- --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment