Open amrutaDesai opened 5 years ago
You might need the --no-blob-protection
option.
I actually tried to follow following steps,
1.I ran all the commands on master branch separately it self,
And made it sure that no files/folders exist in any of the branch including master along with its history.
@javabrett thank you for your reply though, I will try to run with this --no-blob-protection flag as well. just for testing.
I have some folders in repo which should be cleaned up along with its history, I'm following a process as mentioned below, with the help of guide lines provided at BFG user guide lines
FYI, I have master and 2 sub branches from master say feature/1190/branch1 & feature/880/branch2
java -jar bfg-1.13.0.jar --delete-folders "{generated-testfiles-input-full}" dummy-repo-to-test-removal-of-unwanted-files.git/
where generated-testfiles-input-full is a folder in src/test/resources folder which I would like to delete along with its history.
the o/p of above command is,
Question 1 In the user guide it is said that Examine the repo to make sure your history has been updated, how do I examine repo here for updated history?
then I run
cd dummy-branch-to-test-removal-of-unwanted-files.git
then
git reflog expire --expire=now --all && git gc --prune=now --aggressive
o/pHere the guide says "once you're happy with the updated state of your repo" how do I check the updated state of repo as the branch I'm already on does not delete the expected folder at this stage.
git push
and the o/p is,Now when I see in the remote repo it does not delete the folder from master branch but deletes the same from both the feature branches. Can somebody please let me know if I'm going wrong some where.
I'm pretty new for Unix so there might be some basic question in above description. All the testing I'm trying to carry out on some dummy repo once I'm succeed with this will go ahead and apply the same on actual repo.