3 ms·
We have often inexperienced students, who do get push permission to our central repos. So far they all behaved reasonable, however we had one accident. The stu
by qznc 13y ago
We have often inexperienced students, who do get push permission to our central repos. So far they all behaved reasonable, however we had one accident.
The student used Eclipse with its git integration. He tried to push, but it failed (non-fast-forward). Apparently, Eclipse tries to be helpful and says something like "If you want to push anyways, use the 'force' checkbox". Not knowing what a "force push" is, the student followed Eclipse's advice.
Thankfully, the distributed nature of git is very helpful. You can just force push again from another repo to undo the force push.
- andor 13y agoYes! Eclipse's JGit is afwul. I did a project with 9 others inexperienced in Git. In the final crunch phase, they managed to delete commits via force push multiple times a day! JGit also completely messed up the history with merge commits, instead of doing fetch and rebase.