I am learning git and came across git soft reset and amending a commit in git. I see both of them serving the same purpose. Any notable difference between the two. Please let me know since I am not able to see any difference between the two.
Asked
Active
Viewed 1,096 times
1 Answers
8
git commit --amend
will change your most recent commit on the current branch by adding any staged changes you've made so far to it and prompt you to change the commit message.
git reset --soft
will actually remove commits from the current branch but keep the changes as uncommitted changes that need to be staged and recommitted.

Taelsin
- 1,030
- 12
- 24
-
3in addition to that, git reset allows you to go over multiple commits, and amending only ever affects one single commit. – Vogel612 Nov 20 '15 at 19:10
-
1