(use"git checkout -- <file>..."to discard changesinworking directory) modified:benchmarks.rb 文件benchmarks.rb出现在 “Changes not staged for commit” 这行下面,说明已跟踪文件的内容发生了变化,但还没有放到暂存区。要暂存这次更新,需要运行git add命令(这是个多功能命令,根据目标文件的状态不同,此...
(use "git checkout -- <file>..." to discard changes in working directory) modified: CONTRIBUTING.md 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 文件CONTRIBUTING.md 出现在 Changes not staged for commit 这行下面,说明已跟踪文件的内容发生了变化,但还没有放到暂存区。
Changes not stagedforcommit: (use"git add <file>..."to update what will be committed) (use"git checkout -- <file>..."to discard changes in working directory) modified: master/main.txt nochanges added to commit (use"git add"and/or"git commit -a") F:\Demo\D11>git commit -a -m...
(use "git add/rm <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) deleted: BodyType.al Untracked files: (use "git add <file>..." to include in what will be committed) Car.al CarCard.al CarList.al no changes ...
(use "git checkout -- <file>..." to discard changes in working directory) modified: CONTRIBUTING.md 它非常清楚地告诉了你如何撤消之前所做的修改。 让我们来按照提示执行: $ git checkout -- CONTRIBUTING.md $ git status On branch master ...
(use "git restore <file>..." to discard changes in working directory) modified: Dockerfile no changes added to commit (use "git add" and/or "git commit -a") 这个例子显示 Dockerfile 已被更改。 2a. 把工作树(当前目录)恢复到索引(暂存区)的状态: ...
Changes not staged for commit: (use “git add…” to update what will be committed) (use “git checkout —…” to discard changes in working directory) modified: modified: … “` ## 2. 保存未提交的修改 如果你想要切换分支但仍然保留这些未提交的修改,可以通过创建一个临时分支来保存这些修改,...
Changes to be committed: (use "git rm --cached <file>..." to unstage) new file: hello.txt Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) ...
(use"git checkout -- <file>..."to discard changes in working directory) modified: TestGit.md no changes added tocommit(use"git add"and/or"git commit -a") fukqdembp:TestGit fukq$ 删除相关操作 删除文件后的Git同步操作 fukqdembp:TestGit fukq$ ls ...
Changes to be committed:(use"git restore --staged <file>..."to unstage)newfile:hyy.txt Changes not stagedforcommit:(use"git add <file>..."to update what will be committed)(use"git restore <file>..."to discard changesinworking directory)modified:hyy.txt ...