Skip to content

Instantly share code, notes, and snippets.

Avatar

hongxia hxsnow10

View GitHub Profile
View gist:90e31be160b4ae305515e40f563147e6
git gc && join -e ERROR -a 2 -j 1 -o 2.1,2.3,1.2 --check-order <( git rev-list --objects --all | sort -k 1 ) <( git verify-pack -v .git/objects/pack/pack-*.idx | gawk '( NF == 5 && $2 == "blob" ){print}' | sort -k1 ) | sort -k2gr
View git commands
# 尝试add而不实际ADD, TODO: 怎么尝试的同时输出ignore的具体情况
git add -n \*
View gitignore large files
# http://stackoverflow.com/questions/4035779/gitignore-by-file-size
find . -size +1G | cat >> .gitignore
# with problems: same name added
You can’t perform that action at this time.