Hacker News new | past | comments | ask | show | jobs | submit login

I'm no squash fan either, but git very rarely actually clobbers data. (As long as it's been committed at some point, and wasn't just sitting in the working tree.) `git reflog` can get back pretty much anything, as long as it happened relatively recently.



Until a garbage collection process trims those. You may control such on your local machine, but you don’t on the remote repo.


That’s why I said “as long as it happened relatively recently.” Of course, the commits in question should exist locally on someone’s machine, so we shouldn’t need to worry about what the remote does.




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

Search: