如下所示,我已经在分支RB-1.1中使用-a选项提交了工作区中的文件,但它似乎仍然处于未跟踪状态。
请建议-
kumar113@sony MINGW64 ~/Documents/Hera_GitLab/testproject-for-hera (RB-1.1)
$ git commit -a -m "added pyhton file"
On branch RB-1.1
Untracked files:
(use "git add <file>..." to include in what will be committed)
apqr_read.py
nothing added to commit but untracked files present (use "git add" to track)
kumar113@sony MINGW64 ~/Documents/Hera_GitLab/testproject-for-hera (RB-1.1)
$ git status
On branch RB-1.1
Untracked files:
(use "git add <file>..." to include in what will be committed)
apqr_read.py
nothing added to commit but untracked files present (use "git add" to track)发布于 2022-09-02 04:55:41
不能直接使用git commit -a -m "added pyhton file"提交取消跟踪的文件。为此,您必须使用git add <file_name>,然后需要提交。
https://stackoverflow.com/questions/73577914
复制相似问题