Closed ghost closed 3 years ago
@ayild I tried to do this. Not successfully. At the git push step (step 5) I got a lot of errors like
! [remote rejected] master -> master (protected branch hook declined) ! [remote rejected] refs/pull/100/head -> refs/pull/100/head (deny updating a hidden ref) ! [remote rejected] refs/pull/103/head -> refs/pull/103/head (deny updating a hidden ref) ! [remote rejected] refs/pull/105/head -> refs/pull/105/head (deny updating a hidden ref)
There were some updates that occurred and now the repository wants to create pull requests based on the pushes that did occur. I am not sure how to sort this out. I think the size may not have been reduced. If you are able to help, please do so.
@dtarb I got the same error on your repository. it is probably because your master branch is protected, so Git doesn't allow force push. You probably need to turn off the protection on that branch. Maybe this would fix your issue?
Steps : --> Settings -->Branches --> Tick Allow force pushes
Permit force pushes for all users with push access.
you can disable it again after this operation.
By the way, for your information: It seems like, after this operation, everyone who cloned your repository will require to do fresh clone of TauDEM.
I did the push with force pushes allowed. git reported the same errors, but seems to have had an effect as the repository size is now smaller. I am going to call this done, but @ahmetartu if you find any problems, please let me know.
TestSuite files do not exist in the current branch, but they still do exist in the Git history, causing users to download around 900 MB of data. The suggestion is to run bfg tool to prune them permemantly from TauDEM Git history. bfg tool is the suggested tool by GitHub -- https://docs.github.com/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository.
In my case, this reduced the repository size to around 2 MB in my forked copy of TauDEM. Note that the bfg tool rewrites the entire git history without creating a commit.
Steps to reproduce:
~/Downloads
: