When I do not know in which project to look for a particular code, I would like to search the entire repo with searck key. But only if the search key exists in the master branch, I get the result. If it's in any other branch, I do not see the result.
Is there any way that I can search in a particular branch?
Hi Jasmine,
Welcome to the Atlassian Community.
You have the option to select which branch you want to search by clicking the drop-down field for branches
Thank you for your answer. Above screen shot is only for a specific project. But I would like to search in the entire repository under my org. For example, I have 4 projects who have 'develop' branch. I would like to search in that branch of all those 4 projects together. (I can do this only for 'master' branch for now and not for any other branches)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The screenshot if from within a repository, not a project. Projects are just a way of organizing your repositories.
It is not possible to search across multiple repositories, you can only search within the repository and in the selected branch.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the clarification. I was actually looking for searching among multiple repositories with the same branch name. Looks like it's possible if the branch is 'master'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct, the search across multiple repositories will only do the search on the default branch, which in most cases is master. These are the restrictions for search:
There are some restrictions on how searches are performed:
master
).qu?ck buil*
) are not supported.!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
Only code you have permission to view will appear in the search results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.