Sami on Rails

Friday, 2 August 2013

Git Reset Head using Refflog

Refflog is used to reset your HEAD after you had HARD RESET HEAD.

$ install reflog
$ git reflog
$ git reset --hard 4993de0 #(give the HEAD number on which you want to go back)

Useful Links:
  • https://www.kernel.org/pub/software/scm/git/docs/git-reflog.html
  • http://gitolite.com/concepts/reflog.html
  • http://stackoverflow.com/questions/134882/undoing-a-git-rebase
  • http://effectif.com/git/recovering-lost-git-commits
Posted by Unknown at 05:02
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Git reset HEAD, Refflog

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Blog Archive

  • ►  2014 (1)
    • ►  July (1)
  • ▼  2013 (53)
    • ►  December (1)
    • ▼  August (9)
      • Git Reset Head using Refflog
      • Setting up Git to use Diffmerge
      • Restore a postgres database dump
      • Creating a Postgres admin user
      • Omni Auth Managing Multiple Providers
      • Facebook API localhost redirect.
      • Authenticate User Using OmniAuth facebook
      • Google Omni Auth with devise tutorial
      • Google OmniAuth. Error: redirect_uri_mismatch
    • ►  July (17)
    • ►  June (4)
    • ►  May (1)
    • ►  April (21)

About Me

Unknown
View my complete profile

More About Us

  • TrendLeakers
  • Mastering Research
  • SERGPK
  • Sami Ulhaq
Picture Window theme. Powered by Blogger.