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 3430776
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:14:43+00:00 2026-05-18T07:14:43+00:00

First of all, Git sucks. I know, I know, it’s supposed to be the

  • 0

First of all, Git sucks. I know, I know, it’s supposed to be the best thing since sliced bread, but it sucks. It’s like trying to shave with a chainsaw: one slight mistake and there are blood and teeth everywhere. Perhaps, if I could actually make an exact distinction between a head, a ref, a commit, a branch, a stem, a gnargel, and a whizpoo, some of this might be a little easier but to an ordinary mortal with only 10 years experience of SVN, Perforce, and RCS, it all looks like rather cranky black magic.

Now for some reason, git pull has never worked for me. I get a 10-line error message that has been, so far, about as helpful as the word “error”. Googling the error message produced a wide array of suggestions that only had in common the fact that they had no apparent affect whatsoever. But that’s not today’s problem: I’ve gotten used to typing git pull origin branch.

Today, I was flipping back and forth between two branches, “master” and “lounge” and at the moment I was in the master branch. I wanted to get the latest changes from the remote repository to the local one, but I mistyped. Instead of writing git pull origin master, I wrote git pull origin lounge and then, without thinking, typed in the correct command.

There’s no evidence of the first (bad) pull in log, just two merges from the master:

commit 0c6be9569bab0581244ea8603bf2edfee82cdd7b
Merge: 43fdec5... db09f0d...
Author: Malvolio <info@xcompanyx.com>
Date:   Wed Nov 24 20:38:58 2010 -0500

Merge branch 'master' of github.com:xcompanyx/xRepositoryX

commit db09f0d79d744d6a354142041b47ff5d748999f3
Merge: 81b6c3d... fc73e25...
Author: Malvolio <info@xcompanyx.com>
Date:   Wed Nov 24 17:38:16 2010 -0800

Merge branch 'master' of github.com:xcompanyx/xRepositoryX

commit 81b6c3d04b7c464f8750a56282635526a5ef83a1
Author: Michael <info@xcompanyx.com>
Date:   Wed Nov 24 17:38:07 2010 -0800
    the last commit I did

But files newly created in the lounge branch are there in my repository.

So now I’m fscked, right? Should I just torch my repository, clone the remote again, reapply all the unpushed changes manually, and chalk it up to Git sucking or is there some incantation I can recite that will make it all better? Would it help if I sacrificed a goat?

  • 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-18T07:14:44+00:00Added an answer on May 18, 2026 at 7:14 am

    Use git reflog to see what your HEAD pointed to before you screwed it up.

    You should see something like:

    48ab8d HEAD@{0}: pull: Fast-forward
    a34bda HEAD@{5}: commit: my last commit message
    

    Now, point your master branch back at the commit before the bad pull:

    git reset --hard a34bda

    Done. Like it never happened.

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

Sidebar

Related Questions

Hey I'm trying to get into git, as an emacs user first thing to
first of all, sorry if that question is dumb but I´m a total newbie
First of all, I'm really new to the MVC Asp.Net ideology. I would like
First of all, I found this: Objective C HTML escape/unescape , but it doesn't
First of all you have to know I'm total Ruby noob :) I installed
I am trying to clone a Subversion repository to git, but it keeps giving
I am trying to deploy my first Heroku application. Every time I git push
First of all, I am new to using 'git'. And I am using SourceTree
I am trying to set up git as a first time user and proceeded
Using Emacs/Magit, I had first a very smooth git experience in another project, but

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.