git clone git@192.168.121.131:/home/git/demo.git
git checkout -b dev
git branch
* dev
master
[root@k8s-2 demo]# cat a.py
print(123)
git add .
git commit -m ‘a‘ .
[root@k8s-2 demo]# cat a.py
print(123)
print(456)
[root@k8s-2 demo]# git status -s
M a.py
对比修改了哪些内容:
git diff a.py
查看提交了哪些内容:
git log --oneline
原文:https://www.cnblogs.com/jamespeng/p/14728477.html