Git how to move commit

I want to go back. How can i do

$ git reflog 9b2a45e HEAD@ {0}: reset: moving to HEAD~1 0c54f19 HEAD@ {1}: reset: moving to HEAD~1 b9c157d HEAD@ {2}: commit: updated from online 0c54f19 HEAD@ {3}: commit: add img from download folder 9b2a45e HEAD@ {4}: commit: add images 6fa6e34 HEAD@ {5}: clone: from git@bitbucket.org :starpix/dojo.git $ git reset --hard HEAD~1 HEAD is now at 9b2a45e add images 

I want to go back to "updated online." How can I?

+4
source share
3 answers

git checkout b9c157d checks for the commit provided by sha, starting with b9c157d - about the commenting you requested.

+5
source

you can just move the headline to b9c157d

 git reset --hard b9c157d 
+6
source

If you have a commit identifier for this particular commit, this syntax will do for you.

git checkout commit_name in the commit name, pass the commit identifier, and if you do not want to check again, then commit will perform this git revert commit_name to return commit.

+1
source

All Articles