S

Satya • 3.38K Points
Extraordinary

Q. What is the difference between 'git stash' and 'git reset'?

  • (A) Stash deletes changes, reset stores them
  • (B) Stash stores changes temporarily, reset moves HEAD and staging
  • (C) Reset is permanent, stash is not
  • (D) There is no difference
  • Correct Answer - Option(B)
  • Views: 46
  • Filed under category GitHub
  • Hashtags:

Explanation by: Satya

'git stash' saves changes temporarily; 'git reset' changes the commit history or index.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.