When you do a git reset, you have two options:
- git reset hard
- git reset soft
So, which one should you choose?
Well, the difference between git reset hard vs soft comes down to what happens to the files in your Git worktree, or workspace, or whatever you want to call it.
With git reset soft, your files are left alone, while a git reset hard resets the files on the filesystem as well.
I always do a git reset hard instead of a git reset soft.
Watch video Git reset hard vs soft: What's the difference? online, duration hours minute second in high quality that is uploaded to the channel Cameron McKenzie 17 August 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 2,073 times and liked it 51 visitors.