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

Delete bitbucket source code but keep wiki and issues

Leo Catallo October 26, 2013

Hi,

I have created a team project on BitBucket, pushed some code to git and started filling issues and wiki.

Now I realize that I should have pushed different code in a different way (i.e. don't push passwords and configuration, don't push history, etc).

Is there a way to remove the code but keep wiki and issues?

Thanks.

1 answer

0 votes
mlp6 October 27, 2013

This information posted by GitHub might help: https://help.github.com/articles/remove-sensitive-data

Leo Catallo October 27, 2013

Do you mean doing something like this "git filter-branch --force --index-filter 'git rm -rf --cached --ignore-unmatch *' --prune-empty --tag-name-filter cat -- --all"?

Tried that, it leaves the current repo empty, but the history of commits is still there.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events