Skip to main content
edited body
Source Link
MrTux
  • 33.5k
  • 30
  • 115
  • 155

Try git reset --soft SHAOFFIRSTCOMMIT and then git commit --amend

The first command resets the current branch to the first commit, but keepsmthekeeps the current index and the second command commits the current index in the last commit.

Try git reset --soft SHAOFFIRSTCOMMIT and then git commit --amend

The first command resets the current branch to the first commit, but keepsmthe current index and the second command commits the current index in the last commit.

Try git reset --soft SHAOFFIRSTCOMMIT and then git commit --amend

The first command resets the current branch to the first commit, but keeps the current index and the second command commits the current index in the last commit.

deleted 1 character in body
Source Link
MrTux
  • 33.5k
  • 30
  • 115
  • 155

Try git reset --mixedsoft SHAOFFIRSTCOMMIT and then git commit --amend

The first command resets the current branch to the first commit, but keepsmthe current index and the second command commits the current index in the last commit.

Try git reset --mixed SHAOFFIRSTCOMMIT and then git commit --amend

The first command resets the current branch to the first commit, but keepsmthe current index and the second command commits the current index in the last commit.

Try git reset --soft SHAOFFIRSTCOMMIT and then git commit --amend

The first command resets the current branch to the first commit, but keepsmthe current index and the second command commits the current index in the last commit.

Source Link
MrTux
  • 33.5k
  • 30
  • 115
  • 155

Try git reset --mixed SHAOFFIRSTCOMMIT and then git commit --amend

The first command resets the current branch to the first commit, but keepsmthe current index and the second command commits the current index in the last commit.