I
I
IvanN7772014-09-29 12:48:29
git
IvanN777, 2014-09-29 12:48:29

How to roll back all uncommitted changes (all) in GIT?

How to roll back all uncommitted changes (all) in GIT?
Not to roll back a commit.
The commit has not yet taken place.
I guess it's probably git fetch
But the project is active and I'm very afraid of messing something up.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2014-09-29
@IvanN777

git reset --hard
if there are files that are not tracked, then also
git clean -d -f

A
Alexander, 2014-09-29
@daapp

Apparently git-reset, but I advise you to read man first in order to understand what you are doing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question