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

  • Home
  • SEARCH
  • 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 8040017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:45:22+00:00 2026-06-05T03:45:22+00:00

I just ran git pull –rebase and forget to specify origin. It looks like

  • 0

I just ran

git pull --rebase

and forget to specify “origin”. It looks like git pulled from all different branches. Is there a way to revert my repo from here to undo the pull?

Thanks

  • 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-06-05T03:45:24+00:00Added an answer on June 5, 2026 at 3:45 am

    After a git pull operation, ORIG_HEAD should point to the previous value of HEAD. You should be able to:

    git reset --hard ORIG_HEAD
    

    And be back where you started before the pull operation. You can run:

    git show ORIG_HEAD
    

    To see exactly where ORIG_HEAD is pointing prior to running the reset command.

    An alternative solution would be to create a new branch based on ORIG_HEAD:

    git checkout -b newbranch ORIG_HEAD
    

    Verify that things look the way you expect, then delete the old branch and rename new branch.

    Also see this question for a discussion of HEAD and ORIG_HEAD and alternate syntaxes for referring to the same thing.

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

Sidebar

Related Questions

I've just sync'd my git repo and ran into a regression. I'd like to
I just ran across some jQuery that looks like this: $('.add-row').live('click.add', function() { //
I just started using git with github. I followed their instructions and ran into
I just ran into a SQL query with about 5 different columns in the
I just ran the following commands on my Ruby on Rails project: git init
I just ran git merge otherBranch and it output this error to the command
I just ran a git add -A on my first git project. I got
In a fit of unbelievable stupidity I accidentally ran git checkout -b origin/master And
I just ran into something weird. I have two JSON arrays which holds different
I just ran an update edition to update from SQL Server 2008 R2 Express

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.