About kpradzinski

Comparing Git reflog with TeamForge-Git History Protection


Can history be changed… and why should I care? In Git version control system it is possible to change history (e.g. to remove accidentally added files which are big/confidential/infringing), or completely delete a branch without a trace (e.g. remove already merged or abandoned feature branches) . This can be useful, but may be dangerous. What if someone does that by accident or with malicious intent? In corporate settings, surprises are usually not a good thing, especially when it comes to data loss/corruption. Here are example commands which change history in Git: git push -f git push origin :branch git push …

Read More »