Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Can only push to a feature branch once, then it disappears. Maybe related to clone depth being set.

I have a repo I've taken on where I had to set the clone depth to 1 in SourceTree as it wouldn't clone the entire repo (would error every attempt). I was able to clone the repo with GitKraken without changing the depth, but the repo is private and I only have the free version of GitKraken.

Making the assumption that the clone depth is the cause, when I create a feature off the develop branch I can push once to said feature and then it's no longer listed as a branch to push to. Master and develop are still listed, but not the feature. I can see the feature branch in BitBucket. Fetching from origin also doesn't list the feature.

The only work around I've found is to finish the feature (yes, I can finish it) then re-create the same named feature and push to that. If I stage changes and commit them to push, I cannot then see those changes once committed and not able to push either.

If it is because the depth is set to 1 (no other repo does this), is there a way to change the repo depth now that I have the most recent commit? Assuming there's less to pull down.

1 answer

Thinking about it, the clone depth was only the initial clone. All the history is being listed since that point.

Suggest an answer

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

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,716 views 4 12
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