How can I recover a file I deleted in my local repo from the remote repo in Git?
https://www.quora.com/How-can-I-recover-a-file-I-deleted-in-my-local-repo-from-the-remote-repo-in-Git
Git cheat sheet:
https://www.git-tower.com/blog/git-cheat-sheet/
Git status
Git add filB
Git commit -m "xxxx"
Git push
Patch: (same comment as before, adding change-id)
git commit --amend
git commit -a --amend
You want to nuke commit C and never see it again. You do this:
git reset --soft HEAD~
From <https://stackoverflow.com/questions/927358/how-do-i-undo-the-last-commits-in-git>
Dos2unix or vim conversion:
https://stackoverflow.com/questions/82726/convert-dos-line-endings-to-linux-line-endings-in-vim
List all files in a commit:
git show --pretty="" --name-only
https://stackoverflow.com/questions/424071/how-to-list-all-the-files-in-a-commit
撤销git commit或者git add文件
http://xyy601-blog.logdown.com/posts/1572725-the-basics-revocation-or-git-add-git-commit-file
留言列表