#显示Git当前仓库的状态
[root@git ~/git_test]# git status
# On branch master #位于master分支
#
# Initial commit #初始的提交
#
nothing to commit (create/copy files and use "git add" to track)
#没有任何提交 创建或者拷贝文件和使用git add 命令进行建立跟踪
#在工作目录中创建几个测试文件
[root@git ~/git_test]# touch {a,b,c}.txt
[root@git ~/git_test
Git添加及提交数据到暂存区及本地仓库
最新推荐文章于 2024-05-16 10:17:50 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)