Discard all local changes, but save them for possible re-use later: git stash. Discarding local changes (permanently) to a file: git checkout -- <file> Discard all local changes to all files permanently: git reset --hard. https://docs.gitlab.com/ee/topics/git/numerous_undo_possibilities_in_git/
No comments:
Post a Comment