Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

haha yep. I knew this would happen. I would definately be on the more careless side though, and I'm sure that 99% of people would not be as careless as me when uploading their files.


Do note that you can’t just commit them away — in fact, doing that will just create a nice log of things you have deleted, and the files themselves are still a part of the git history.

What you need to do is an interactive rebase, go through all commits, and remove the files by editing the original commits. You can do this with git rebase -i but it is very labor intensive and requires a lot of concentration to get right.

Afterwards your local history will have diverged from GitHub and you need to git push -f to replace the commit history on GitHub with that of your local repository.

It might be a good idea to make the repository private until you have changed all of your passwords and made sure there is no such material in the repository’s history. That doesn’t help if someone already cloned it, though.

Good luck in any case. Hope you have strong passwords and 2FA on your Steam and Gmail.


thank you, I will do this immediately.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: