Y
Y
Yourmind2019-10-16 11:30:35
git
Yourmind, 2019-10-16 11:30:35

How can I make sure that all files in the project folder become the same as they were at the time of the last commit?

I have a local project. I push it to githab. Since the last commit, I've changed something there, but I haven't indexed any of it. How can I make sure that all files in the project folder become the same as they were at the time of the last commit? Because all I can think of is git clone 'reference' in the folder where the project folder is. After all, we essentially did not index anything and all the logs of the git are essentially correct.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey P, 2019-10-16
@ruddy22

git checkout .

E
Egor Zhivagin, 2019-10-16
@Krasnodar_etc

Isn't git stash for that?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question