P
P
P_Alexander2019-10-07 11:49:44
git
P_Alexander, 2019-10-07 11:49:44

How to undo all changes (not indexed) in a project, (git)?

Good afternoon, how to undo all non-indexed local changes in a project?
I know how to undo only one file at a time, like this git checkout .
But I need something like this git add -A just for checkout. Well, or for a whole directory, for example ....
Who knows, please tell me, otherwise it is very painful to roll back dozens of files ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2019-10-07
@P_Alexander

git reset --hard
https://git-scm.com/docs/git-reset

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question