git - How can I reset my working copy to a specific commit? -


I (stupid) has not made any changes or changes on a project for a few days. Tonight, I have not sent any message by accident, using the Atlasian Socratry I thought "Oh, before I add a message to push it" - and right clicked and selected "back" .

I am not completely sure that after choosing what I have chosen, the other way to bring it back, but now I am afraid to lose many hours of work for someone else I'm afraid to click on things. If you look at your screenshot below, then I would like to highlight the highlights commission ("Master 1 no further message") in the copy of my work and the most recent commitment to my repo.

What should I do

Enter image details here < This idea will be because you have not pushed anything yet:

 
git stash git reset - hard work ~ git commit - menu

this will allow you to move the head (in the command line) (reset index and work tree) To do so, the importance of hiding any work in progress first), and the commitment Edit the message.

You should be able to move HEAD from SourceTree (supported from 1.3b3), but the command line may be more accurate in this case.

P> Revert has made another commitment that cancels the previous one: If you see that your work tree has been modified due to it, then reset --hard erything for your previous commitments (without your message)

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -