How to come back to previous revision at server ? (GIT)

my last commits list :

commit-hash, message

fc690d2c3   come back
da645f048   code refactoring = 10%
38cababf0   refactoring application from imports

so its mean fc690d2c3 is HEAD revision on server. i need come back to this -> "38cababf0" revision.

I was trying to do smth like this: git reset --hard 38cababf0 -> but it only my local revision becomes 38cababf0 ( remove revision still fc690d2c3), and i cant push this because it does not see changes

and i was trying to revert in PyCharm, from da645f048 to 38cababf0 revision, but it just commit my da645f048 revision again as fc690d2c3

so how come back to this 38cababf0 revision on server?

Answers


If these changes are already on the server your best bet is to just revert them like this:

git revert da645f048..fc690d2c3

That will create new commits that reverse the changes of the commits you don't want anymore.


Need Your Help

RadContextMenu closes on button click

javascript telerik contextmenu rad-controls

I am trying to make my RadContextMenu stay open when use the left click. It works find when i use the right mouse click because that is the default, but i also want to open the context menu on right

Testing - Connection string is missing

c# visual-studio-2010 web-config connection-string integration-testing

Visual studio created a unit test project for me based on a method (right-click add test). When I try to access the database, I get an exception. Ran this code to see what my connection was: