You can use the option -r in git ls-tree to show all files from a branch:

git ls-tree -r B

With that, you can use a grep to find the file you are searching.


William Seiti Mizuta
@williammizuta
Desenvolvedor da Caelum



On Mon, Dec 17, 2012 at 12:27 PM, Thomas Ferris Nicolaisen <tfn...@gmail.com
> wrote:

>
>
> On Monday, December 17, 2012 3:22:26 PM UTC+1, lei yang wrote:
>>
>> Thanks for the tips, I have another question, If I forget branch B
>> files' path, how chould I do without switch to B
>>
>>
> You can explore the contents of other branches easily in any Git GUI tool.
> Or you can use command line:
>
> git ls-tree B
>
> or if the file was in a subdirectory:
>
> git ls-tree B subdir/
>
> --
>
>
>

-- 


Reply via email to