Git 常见文件并提交

版权声明: https://blog.csdn.net/qq_40829288/article/details/84470563

1.创建一个readme.txt.

cd /home/cyp/learngit
touch readme.txt
vim readme.txt

编写内容, wq 保存推出

2.提交步骤

2.1  git add readme.txt   提交到暂存

2.2 git commit -m "写上你做的改动”  提交到仓库.

3.git status 查看状态

4. git diff 查看改动情况

猜你喜欢

转载自blog.csdn.net/qq_40829288/article/details/84470563