Yenamala K
48
Q:

how to remove file changes in git

# Discarding local changes (permanently) to a file:
git checkout -- <file>

# Discard all local changes to all files permanently:
git reset --hard
9
git checkout -- .
0
git clean -df
git checkout -- .
0

New to Communities?

Join the community