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 delete completely files in BitBucket GIT?

Romuald Tisserand
Contributor
November 28, 2014

Hi,

Some of my fellows put in GIT some big, unwanted files. I'm trying to permanently remove them before they slow down any GIT operation, particularly clone and tag.

 

I've tried to use the BFG Repo Cleaner utility. Each time I ask this tool to remove a specific file, the file is found and removed. But in the end, when I run "git push" to update the bitbucket database, everything runs fine, but in the end, the unwanted files are still present.

 

Any idea? Thanks.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Romuald Tisserand
Contributor
November 28, 2014

Answer to myself: RTFM!!

 

BFG Repo Cleaner works great, but before running it:

  • "git rm" / commit / push the unwanted files
  • your last commit must be "clean" because the tool won't touch it

 

TAGS
AUG Leaders

Atlassian Community Events