[GH-ISSUE #33] Feature request: support git commit --amend #26

Closed
opened 2026-03-02 16:47:14 +03:00 by kerem · 3 comments
Owner

Originally created by @alexanderkogan on GitHub (Jan 27, 2023).
Original GitHub issue: https://github.com/initialcommit-com/git-sim/issues/33

Currently only git commit is supported.
Amending would be quite easy to show, I think.

When I find the time, I might try to implement it, but if anybody feels the urge, feel free to do it. (;
From my first foray through the code, it would be similar to the additional flags in reset.

Originally created by @alexanderkogan on GitHub (Jan 27, 2023). Original GitHub issue: https://github.com/initialcommit-com/git-sim/issues/33 Currently only `git commit` is supported. Amending would be quite easy to show, I think. When I find the time, I might try to implement it, but if anybody feels the urge, feel free to do it. (; From my first foray through the code, it would be similar to the additional flags in `reset`.
kerem closed this issue 2026-03-02 16:47:14 +03:00
Author
Owner

@initialcommit-io commented on GitHub (Jan 27, 2023):

@alexanderkogan Yes this should be a quick one I'll try to get it implemented and released later today! I'll post back here when ready for you to test.

<!-- gh-comment-id:1406837253 --> @initialcommit-io commented on GitHub (Jan 27, 2023): @alexanderkogan Yes this should be a quick one I'll try to get it implemented and released later today! I'll post back here when ready for you to test.
Author
Owner

@initialcommit-io commented on GitHub (Jan 28, 2023):

@alexanderkogan Just implemented this in git-sim 0.1.7. You can now use the --amend option as a part of git-sim commit as follows:

$ git-sim commit --amend -m "Amended commit message"

Note that for now the amended commit message must be supplied using the -m flag.

Please upgrade to git-sim 0.1.7 by running:

$ pip install git-sim --upgrade

Then test it out and let me know if it works for you! =D

<!-- gh-comment-id:1407326995 --> @initialcommit-io commented on GitHub (Jan 28, 2023): @alexanderkogan Just implemented this in git-sim 0.1.7. You can now use the `--amend` option as a part of git-sim commit as follows: ``` $ git-sim commit --amend -m "Amended commit message" ``` Note that for now the amended commit message must be supplied using the `-m` flag. Please upgrade to git-sim 0.1.7 by running: ``` $ pip install git-sim --upgrade ``` Then test it out and let me know if it works for you! =D
Author
Owner

@initialcommit-io commented on GitHub (Jan 29, 2023):

@alexanderkogan Closing since this is implemented now. Feel free to reopen if any issues.

<!-- gh-comment-id:1407721857 --> @initialcommit-io commented on GitHub (Jan 29, 2023): @alexanderkogan Closing since this is implemented now. Feel free to reopen if any issues.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-sim#26
No description provided.