我的是脏的

来源:2-1 创建仓库

慕哥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回答

  • xixiyingyi
    2019-08-26 22:53:20
    已采纳

    你使用 1、git add text.txt    2、git commit -m "repo4 first commit "   是将文件text.txt保存到仓库中了。而git status 提示  你还有这个  test.tet  文件还未提交~~~,检查一下工作空间是否存在这个文件

    慕哥1387...

    谢谢!

    2019-08-26 22:55:38

    共 1 条回复 >

Git入门

命令行和图形界面工具两种形式的Git使用。

43596 学习 · 84 问题

查看课程