search lost info
git reflog --all | grep something
git fsck --full --no-reflogs --unreachable --lost-found | grep commit | cut -d\ -f3 | xargs -n 1 git log -n 1 --pretty=oneline > .git/lost-found.txt
@blog #git
git reflog --all | grep something
git fsck --full --no-reflogs --unreachable --lost-found | grep commit | cut -d\ -f3 | xargs -n 1 git log -n 1 --pretty=oneline > .git/lost-found.txt
@blog #git
git branch --no-merged
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
@blog #git
git config receive.denycurrentbranch ignore
vi .git/hooks/post-receive
#!/bin/bash
cd ../
env -i git reset --hard
chmod +x .git/hooks/post-receive
git diff --name-status SHA1 SHA2 | cut -f2