G
G
Gleb2015-12-08 17:37:58
PHP
Gleb, 2015-12-08 17:37:58

How to restore git changes?

Colleagues, good evening.
There was a problem - I ask for your help.
There is a project in netbeans linked to git. The changes are committed to the local machine. It turned out that they accidentally made a pull through the IDE (from the master branch) and overwritten all the changes, incl. which merged via ftp to the test server.
Is it possible, by means of git, to return everything back, given that the commit was not made?
PS: I know that the hands of the asshole, please do not remind once again.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Romanenko, 2015-12-08
@slimus

If you didn't git commit the changes, then most likely you can't.
git status see if your changes are there, and if there are none, then there are none.

M
Max, 2015-12-08
@AloneCoder

Try to look in Netbins Local History if you have it enabled

I
IceJOKER, 2015-12-08
@IceJOKER

git log//see the list of commits, it's more convenient with --oneline , if there is a necessary commit
git checkout HASH//HASH - the hash of the commit you need or HEAD(^^)
If you didn't make any commits, then there's no way....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question