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

> Of course you never rewrite history on a public branch!!

The problem is that git doesn't track what "public" means. There was a proposal to work on this for GSoC 2012[1], but nobody picked it up. This concept is called "phases"[2] in Mercurial, which are a building block for Evolve[3].

In Mercurial, it'ss possible to safely rewrite commits, and it's also possible to safely propagate your edits to other repos. Git would have to grow something like changeset evolution to make this completely safe and to be able to deprecate `git push --force`. There could be a safer alternative that does not require any forcing.

[1] https://github.com/peff/git/wiki/SoC-2012-Ideas#published-an...

[2] http://mercurial.selenic.com/wiki/Phases

[3] https://www.youtube.com/watch?v=4OlDm3akbqg




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

Search: