【发布时间】:2011-06-28 01:54:06
【问题描述】:
我已经查看、搜索和阅读了文档,但实际上找不到任何关于此的内容。
基本上,我希望能够做到这一点:
git reset -- *.exe
或
git reset -- */some_executable.exe
而不是这个:
git reset -- some/very/long/path/some_executable.exe
如果能够做到这一点,那就太好了:
git reset -- topleveldirectory/another/subdirectory/*
而不是这个:
git reset -- topleveldirectory/another/subdirectory/SomeFile.cpp
git reset -- topleveldirectory/another/subdirectory/SomFile.h
我认为我可以在 git-add 中使用通配符 * 来添加文件,但没有找到任何适用于上述情况的方法。
对我可以在哪里查找更多信息有任何建议或指示吗?
使用:64 位 Windows 7 上的 git 版本 1.7.3.1.msysgit.0
【问题讨论】: