Forums

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

How to implement shallow clone git repository in bitbucket?

Rohit Gupta
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!
June 26, 2018

Is there some feature in bitbucket to have only shallow cloned while creating a branch from master which is having one year history.

1 answer

0 votes
Ben Stuart
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 6, 2018

Hey Rohit, 

I'm not sure I understand your question. You want to create a branch off of master which does not contain the history of the rest of the repository? I don't think this is possible due to the nature of Git itself. Your clients can of course perform shallow clones, but this is nothing that can be enforced from the Bitbucket end. One option would be to do a shallow clone of your repository and then push the shallow clone to a new repository in Bitbucket. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events