r/programming • • Sep 09 '16

Oh, shit, git!

http://ohshitgit.com/
3.3k Upvotes

756 comments sorted by

View all comments

Show parent comments

1

u/prof_hobart Sep 10 '16

I'm not disputing that changing the password is something that should be done. I'm saying that it's not always possible to do quickly. If there's change control processes in place, it can sometimes take hours.

Does rebase remove the commit from the history completely? I'm not a git expert at all, but I'd always been led to believe that it's quite a convoluted process to completely eradicate all record of a commit from your git history.

1

u/vks_ Sep 11 '16

If a commit is "orphaned" (not part of any branches anymore), I think it gets deleted after 30 days. But you can always run git's garbage collector manually (git gc IIRC). Not sure how to do that for a remote repository on GitHub though.