Git Delete Current Changes

[Solved] Git Delete Current Changes | Shell - Code Explorer | yomemimo.com
Question : git discard local changes

Answered by : friendly-fox

# Discarding local changes (permanently) to a file:
git checkout -- <file>
# Discard all local changes to all files permanently:
git reset --hard

Source : https://docs.gitlab.com/ee/topics/git/numerous_undo_possibilities_in_git/ | Last Update : Thu, 14 May 20

Question : git delete changes

Answered by : mushy-monkey-cvodx7g0ah6g

git clean -df
git checkout -- .

Source : https://stackoverflow.com/questions/52704/how-do-i-discard-unstaged-changes-in-git | Last Update : Sat, 30 May 20

Question : git delete current changes

Answered by : wicked-wolf-kfrr7ktv1iyg

git reset --hard HEAD

Source : | Last Update : Tue, 19 May 20

Answers related to git delete current changes

Code Explorer Popular Question For Shell