Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to exclude some directories (and their contents) on pull request?

6Degres_projet
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!
January 16, 2020

Hello,

We have many sites using the same bitbucket repository. But some files differ between the sites, so we just put them into specifical directories. And all thoses specificals directories are comitted in the repository. In our production server, I would like to get only the directory corresponding to one site. 

I tried to add the path in .git/info/exclude file, but it isn't working.

I tried also with git update-index --skip-worktree, but it only accept files and not directory (as some files could be add later, I need to exclude directories).

To be sure to be clear:

We have 2 sites (A and B) with almost the same codes. We have 2 directories (A and B) wich contains the specifical files. On the site A, I wish to get only directory A when I pull the sources, and only directory B on site B.

Do you have a solution to do this?

thank you in advance,

Yann

1 answer

1 accepted

1 vote
Answer accepted
6Degres_projet
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!
January 20, 2020

Hello,

Finally I found the solution ny using sparseCheckout as explained here.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events