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

git branch 查看当前分支 或者 分支列表

git pull 从远程服务器 拉去最新变更

git push origin feature/batch_top 把 commit 到本地的内容 推送到远端服务器
https://blog.csdn.net/ydh12241007/article/details/108474250

posted on 2022-10-28 11:38  sunny123456  阅读(431)  评论(0)    收藏  举报