The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

TAGS
AUG Leaders

Atlassian Community Events