Skip to content
Git Explained

Git Explained

Git Reset Soft vs Mixed vs Hard: What Happens to Your Changes

· Git reset soft vs mixed vs hard | ek mode khatarnak hai

Undo a bad commit with git reset: --soft keeps the changes staged, --mixed (the default) keeps them unstaged in your files, and --hard deletes them. Ran --hard by mistake? git reflog can bring the commit back, but not uncommitted edits.

Interview SheetPractise the patterns behind interview problemsProblems grouped by pattern, each with the idea first and the code in four languages.