Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If you accidentally commit an unnecessary file or folder to the git repository and have already done a push, then to remove all traces of this file or folder, including from the history, just run the command:
where PATH is the relative path to the file or folder.
After that run (to overwrite the change history):git push origin master --force
Don't need this. Just delete the directory using standard OS methods, and then do
and
Well and send the new code to the server, respectively.
First we write:
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch myfile' \
--prune-empty --tag-name-filter cat -- --all
myfile replace to the name of the file to be removed from the turnip. Then:
git push origin --force --all
git push origin --force --tags
Taken from: fkn.ktu10.com/?q=node/9739
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question