慕哥1387267
2019-08-26 20:24
HLY@LAPTOP-6FRC4KPN MINGW64 ~/Desktop/demon02 (master)
$ git add text.txt
warning: LF will be replaced by CRLF in text.txt.
The file will have its original line endings in your working directory
HLY@LAPTOP-6FRC4KPN MINGW64 ~/Desktop/demon02 (master)
$ git commit -m "repo4 first commit "
[master (root-commit) 7584903] repo4 first commit
1 file changed, 2 insertions(+)
create mode 100644 text.txt
HLY@LAPTOP-6FRC4KPN MINGW64 ~/Desktop/demon02 (master)
$ git status
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
test.tet
nothing added to commit but untracked files present (use "git add" to track)
你使用 1、git add text.txt 2、git commit -m "repo4 first commit " 是将文件text.txt保存到仓库中了。而git status 提示 你还有这个 test.tet 文件还未提交~~~,检查一下工作空间是否存在这个文件
Git入门
43596 学习 · 84 问题