Hi All,
I have been using BitBucket for a short while. I primarily use Source Tree for working with branches. I want to know if there is any option in source tree that i can use to add patterns to exclude.
Eg. if my local repo on my laptop has files distributed by following directory structure
scripts/ddls/tables/t_name.sql
scripts/ddls/tables/t_stg_name.sql
scripts/ddls/views/v_name.sql
scripts/shell/s_name.sh
How/where do i add pattern in source tree such as below:
t_stg_*.sql
v_*sql
s_*.sh
So that only scripts/ddls/tables/t_*.sql is available to be committed and pushed to remote repo.
looking forward to get some insights into this, if this is possible at all through GUI Source tree.
Hi Suhel,
Welcome to the Atlassian Community.
What you need is a .gitignore in the root of your repository, that way everyone that have a copy of repository has the same .gitignore patterns. In the .gitignore you would add the following based on what you want to ignore:
t_stg_*.sql
v_*sql
s_*.sh
Note that files that are already in the repository will not be ignored, so you would have to remove them from the repository first.
For more information about gitignore, check out the documentation for it here https://git-scm.com/docs/gitignore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.