3 ms·
Does it have something like git amend for local branches? That will at least allow the latest commit to be changed. In case anyone is confused, git amend can a
by benatkin 5y ago
Does it have something like git amend for local branches? That will at least allow the latest commit to be changed.
In case anyone is confused, git amend can amend the changes, not just the commit message. I didn't notice this for a while, and finally got around to reading about how it works. https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
- zoomablemind 5y agoFossil's amend command covers a wide set of commit attributes. This can be applied not only to the latest commit, but also at any historical point. Looks like it's implemented as a new special commit with some internal logic which overrides the original commit's metadata. This is actually done without altering the historical record of the original commit; it's transparent on the log/timeline, but the amend event entry can also be made visible. Very clever way of letting user fix some attribution mistakes/typos, yet not mangle the original commit. However, for amending the actual file changes, like it could be done with git --amend, Fossil requires another proper commit; for historical amends, the new commit has to be put onto a new branch. Fossil-scm website has a detailed help section for all commands, including the amend.