一,未使用 git add 缓存代码时。 可以使用 git checkout -- filepathname (比如: git checkout -- readme.md ,不要忘记中间的 “--” ,不写就成了检出分支了!!)。放弃所有的文件修改可以使用 git checkout . 命令。 此命令用来放弃掉所有还没有加入到缓存区(就是 git add 命令 ...
Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources. Kenneth Harris, a NASA veteran who worked on ...
Community driven content discussing all aspects of software development from DevOps to design patterns. When your git commit history gets long in the tooth, and you want to clean up your feature and ...