sunny123456

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

git commit 多文件(提交指定文件) 命令里面多文件需要带文件路径 ,就是 status 里面查询出来的文件路径

git commit 多文件

在项目中一个文件夹下,若想提交其中的几个文件可做如下操作:
前提:文件已经被git add过加入版本管理,使用 git status 可查看仓库状态

git commit file_1.java file_2.java file_3.java -m "提交描述"
  • 1

其中,多个文件要用空格分隔,之后即可git push

https://blog.csdn.net/ydh12241007/article/details/108474250
posted on 2022-10-28 11:37  sunny123456  阅读(357)  评论(0编辑  收藏  举报