git小笔记

75 阅读1分钟

image.png

image.png

image.png

git diff 查看修改的文件内容

commit 之前你有反悔撤销的能力 如:

git checkout .  就是撤销所有操做

git chectout 文件名  (modified中的一个文件 即撤销某个文件修改)

commit 之后 可以通过 git log查看日志

git show 某一行标记  来查看提交的内容