小编Nat*_*iel的帖子

git是否支持路径中的通配符?

我查看,搜索和阅读文档,但无法真正找到任何相关信息.

基本上,我希望能够做到这一点:

git reset -- *.exe
Run Code Online (Sandbox Code Playgroud)

要么

git reset -- */some_executable.exe
Run Code Online (Sandbox Code Playgroud)

而不是这个:

git reset -- some/very/long/path/some_executable.exe
Run Code Online (Sandbox Code Playgroud)

能够做到这一点也很高兴:

git reset -- topleveldirectory/another/subdirectory/*
Run Code Online (Sandbox Code Playgroud)

而不是这个:

git reset -- topleveldirectory/another/subdirectory/SomeFile.cpp
git reset -- topleveldirectory/another/subdirectory/SomFile.h
Run Code Online (Sandbox Code Playgroud)

我可以*在git-add中使用通配符来添加文件,但是在上面的例子中找不到任何有用的东西.

有什么建议或指示我可以在哪里寻找更多信息?

在64位Windows 7上使用:git版本1.7.3.1.msysgit.0

git msysgit

31
推荐指数
3
解决办法
2万
查看次数

标签 统计

git ×1

msysgit ×1