S
S
Sergey2016-01-05 10:24:49
git
Sergey, 2016-01-05 10:24:49

How to revert changes to all non-indexed git files?

Added a bunch of files to different directories, some files were overwritten. Now we need to remove changes in non-indexed files. Use checkout file well, it's the same PPC as long for 30 files. Is there some command that rolls back changes to the last commit in one fell swoop?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2016-01-05
@zeyser

git checkout -- .(while in the root of the repository)
or
but be careful - this will reset all uncommitted changes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question