Git 简单总结

1.git 命令

git clone;
git push
git status;
git commit;

2.git 如何查看某次提交修改的内容x

知道commit id的情况下:

  1. 获取commit id
    git log

  2. 查看commit内容
    git show commit_id

查看最近n次提交的修改
git log -p -n
指定n为1则可以查看最近一次修改的内容

发布了60 篇原创文章 · 获赞 41 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_24822271/article/details/102677961