Forums

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

I can't delete a branch and it is the branch that's driving the size of my repo over 2G

Mike Scorelle
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!
September 9, 2019

I accidentally pushed a very large directory into a branch. I'm fine deleting the entire branch, but can't seem to do that wis this branch - neither from the bitbucket interface nor from the command line. Please help. Also I can't seem to reduce the size of the repo by hard reset and push --force.

1 answer

0 votes
Logan Schmidt September 9, 2019

@Mike ScorelleWere you able to perform a git delete of the branch?

https://stackoverflow.com/a/2003515

Also look into git's garbage collection / cleanup as it may help with the size issue https://www.atlassian.com/git/tutorials/git-gc

Hope this helps :)

Mike Scorelle
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!
September 9, 2019

@Logan Schmidt Thanks. No, I wasn't able to delete the branch.

Logan Schmidt September 9, 2019

Can you share any error messages, codes, terminal output. It helps a lot!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events