Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

0 votes
Answer accepted

Hello,

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

477 views 5 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you