Question : how revert back uncommit changes
Answered by : lucky-lapwing-z8k8u0lfs23o
git reset --soft HEAD~1
Source : | Last Update : Mon, 06 Apr 20
Question : git revert uncommitted changes
Answered by : marton
# Revert changes to modified files.
git reset --hard
# Remove all untracked files and directories.
# '-f' is force, '-d' is remove directories.
git clean -fd
Source : https://stackoverflow.com/questions/5807137/how-to-revert-uncommitted-changes-including-files-and-folders | Last Update : Thu, 18 Feb 21
Question : revert uncommitted changes git
Answered by : defeated-deer-s6uou14nmg89
git reset
git checkout .
git clean -fdx
Source : https://stackoverflow.com/questions/14075581/git-undo-all-uncommitted-or-unsaved-changes | Last Update : Mon, 15 Aug 22