Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6700519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:49:28+00:00 2026-05-26T06:49:28+00:00

I have been reading other questions on stack overflow but nothing simply explains what

  • 0

I have been reading other questions on stack overflow but nothing simply explains what I need. I am pushing to a remote repo with one other collaborator. I want to check out a past commit from a few weeks ago. How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:49:28+00:00Added an answer on May 26, 2026 at 6:49 am
    git checkout -b <branch_name> <sha1>
    

    (this will create a new branch and checkout at that particular commit that you want)

    If you just want to reset current branch to it:

    git reset --hard <sha1>
    

    Update on sha1:

    What I meant by Sha1 is this long hash that is associated with each commit and identifies it. You can easily find it by doing a git log

    Sample git log output:

    commit 10a45e0f0680b8fd493ed0264fe24be2648af1b3
    Author: manojlds <manojlds@gmail.com>
    Date:   Thu Oct 13 19:04:23 2011 -0600
    
        some other commit
    

    10a45e0f0680b8fd493ed0264fe24be2648af1b3 is the sha1 hash.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been reading other questions and answers around this but I am not
I have been reading up on File's Owner here on Stack Overflow and a
I have been reading about collision detection in games on stackoverflow and other sites.
I have been reading up on multiple PHP frameworks, especially the Zend Framework but
I'm still relatively new to CSS, but after lots of Stack Overflow reading, I
I am posting this question after reading other similar questions about my problem but
I have been reading through various questions on here, as I am learning VHDL
I've been browsing through stackoverflow reading other questions about MSTest and DeploymentItem; I've followed
I have been reading the heated debates on composite vs surrogate keys on Stack
I have been reading a LOT of google posts and StackOverflow questions about how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.