我有一个目录结构如下:
base
├── config.yml
├── build
│ └── output.yml
│ └── <multiple level sub-directories each having many files including *.c and *.h files>
├── <source directories - having many sub-directories with various files including *.c and *.h files>
│ ├── <xyz>
| │ ├── &
我希望能够运行一个命令来丢弃对一个特定文件的更改,不管它是未跟踪的还是修改的。
现在我运行git status,它给了我这样的东西:
$ git st
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
mo