M
M
mammaknullare2022-04-10 23:56:58
git
mammaknullare, 2022-04-10 23:56:58

How to restore changes deleted locally in the staging area?

How can I revert project changes that I deleted by submitting to the staging area? And deleted, by the way, half of the site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Kuznetsov, 2022-04-11
@mammaknullare

The question is rather confusing. I understood like this:

How to restore files that were indexed via git add but then deleted without committing?

To cancel all non-indexed changes, the command will allow:
git restore :/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question