Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在所有分支/所有版本中搜索某个字符串?本质上相当于使用 ctrl+shift+f 来搜索整个解决方案……但是对于所有版本和分支?
远射,但我想我会问。如果没有,是否至少有一些文件名?询问 github.com,但如果它在 gitshell 中,那也很酷。
我亲爱的朋友们决定在某个未合并的分支中删除一些代码。
虽然这将使用 Git 而不是 GitHub 的 Web 界面,但这样的东西怎么样?
git log --all --source -S"Some string"
还有一个 -G 选项执行正则表达式而不是 -S。如果你做一个细节就在那里
man git log
这里唯一的缺点是它假设您已经克隆了存储库。