一些 Git 命令的备忘
git log --all 查看所有历史
git merge --squash "squash" merge 某分支
git reset HEAD^ or
git reset HEAD~1 撤销最后一次提交。
git reset --hard HEAD^ 撤销最后一次提交并清除本地修改。
git reset SHA1 回到SHA1对应的提交状态。
设置忽略文件 File Mode 的变更
git config core.filemode false
git config --global core.filemode false
git fsck --lost-found, git reflog 找回丢失的 commit