Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

search for source file in all branches

iboardman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 15, 2020

Documentation says you can only search the default branch. Is there any way to find a source file from any other branches on origin repo?

1 answer

0 votes
Nitish April 15, 2020

Hi @iboardman 

Yes it is possible to search file across all branches. This can be done using logs.

% git log --all -- '**/my_file.png'

Click here to view more. 

I hope it will work for you. 

dhruval.shah
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 13, 2022

It's not working, can you please guide some other option?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events