0

I am looking online to see if there is a difference between:

git reset HEAD~1

and

git reset --soft HEAD~1

I see some good stuff on the subject but nothing that seems to differentiate between the two above commands.

What's the difference between git reset --mixed, --soft, and --hard?

  • 1
    The answer is in the question you linked to. Specifically the sentence that says "Note: `--mixed` is the default option". With that information and an extensive explanation of what `reset --mixed` and `reset --soft` do, there should be clarity. – Joachim Sauer Mar 10 '20 at 19:54
  • it answers the question as a sidebar sure –  Mar 10 '20 at 20:06
  • https://git-scm.com/book/en/Git-Tools-Reset-Demystified – phd Mar 10 '20 at 20:07

1 Answers1

0

According to the internet, these two are equivalent:

git reset --mixed HEAD~1

git reset HEAD~1

because --mixed is the default. And the difference between git reset --mixed and git reset --soft is discussed in depth elsewhere.