Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting file from repository #32

Closed
kazoompa opened this issue Mar 4, 2014 · 3 comments
Closed

Deleting file from repository #32

kazoompa opened this issue Mar 4, 2014 · 3 comments

Comments

@kazoompa
Copy link

kazoompa commented Mar 4, 2014

Hi,

I want to use your tool to delete some data files that were committed by mistake. I have already deleted them in the last commit but I need to remove them from the history. Using your sample command didn't do anything, I have the impression that the files must be present for the deletion to work, is this the case?

Thanks.

@ToddBradley
Copy link

No, in fact if the files have NOT been deleted (using "git rm") then BFG
will exit with an appropriate error message.

Maybe you could reply with the command you ran and the output you saw?

On Mon, Mar 3, 2014 at 7:47 PM, Ramin Haeri Azad
notifications@github.comwrote:

Hi,

I want to use your tool to delete some data files that were committed by
mistake. I have already deleted them in the last commit but I need to
remove them from the history. Using your sample command didn't do anything,
I have the impression that the files must be present for the deletion to
work, is this the case?

Thanks.

Reply to this email directly or view it on GitHubhttps://github.com//issues/32
.

@kazoompa
Copy link
Author

kazoompa commented Mar 5, 2014

Thanks Todd, I finally was able to delete the files I wanted from the repository event though they were deleted from the HEAD. Fantastic tool, I was removed files, replaced code content and rebuilt each branch and no problemo!

Cheers

@kazoompa kazoompa closed this as completed Mar 5, 2014
@rtyley
Copy link
Owner

rtyley commented Mar 6, 2014

Thanks @kazoompa, really glad you like the tool - just to repeat @ToddBradley's clarification, having the dirty files deleted from HEAD before you run The BFG is good, and should not stop it from deleting the relevant files.

http://rtyley.github.io/bfg-repo-cleaner/#protected-commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants