2011-06-30 13 views
1

可能な重複ファイルを検索します。
How can I search Git branches for a file or directory?はGitのレポに

をどこかに私の地元のGitのレポでは、名前にPDFCMapを含むファイルがあるはずです。このファイルを見つけるにはどうしたらいいですか?私はどのブランチ/パスであるのかわかりません。

[編集]複製の回答が私のために働いていないことに注意してください。あなたはファイルを見つけることができます(どのような枝)を見つけるために(:) sort -uを通って、パイプ)--no-徒歩オプションをドロップし、すべての歴史を歩いて

+0

'gitの。 –

答えて

3
git rev-list --objects --all --no-walk | grep -i PDFCMap 

git log --oneline --all --no-walk --decorate -- full/path/you/obtained 

例:何も返さないと私は、ファイルがある支店/リビジョンでは分からないlog`

git log --oneline --all --no-walk --decorate -- full/path/you/obtained src/SConstruct 
1fb30cf (zfs-fuse.net/testing, rudd-o/testing) fix missing split on environment CFLAG reported on gentoo by Marcin Miroslaw 
fc48fe2 (sehe.nl/marcin) Takes CC en CFLAGS from the environment for scons 
9bfb958 (sehe.nl/ctl) Merge branch 'ctldir' of http://rainemu.swishparty.co.uk/git/zfs into ctl 
1ef5d94 (MikeHommey/build/no-ztest) Don't build nor install ztest 
c5ed979 (MikeHommey/build/clean) Cleanup after scons 
d6164c4 (MikeHommey/build/optim) Add an optim option to the build system 
673b82c (MikeHommey/upstream/tarball) 0.5.0 release tarball 
f71cca1 (tag: 0.4.0_alpha1) Doc updates. Made install_dir a command-line parameter. Adjust ARC size so that zfs-fuse shouldn't go over 100 MB of RAM. 
d653bf2 (tag: 0.2.2) Automatically create symbolic links when building. 
+0

これは私に答えを得ました。このファイルがどのブランチ/リビジョンにあるかをどのように知ることができますか? –

+0

答えを更新しました – sehe

関連する問題