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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:44:59+00:00 2026-05-29T09:44:59+00:00

I am a relative beginner at git – I have two branches: master and

  • 0

I am a relative beginner at git – I have two branches: master and frontend. I’ve recently done something that’s messed everything up and I don’t know how to fix it. I cannot seem to find a way forward without making it worse – I would appreciate your indulgence.

This is my gitk --all:

gitk --all

Top blue: stash WIP on frontend
Second blue: index on frontend.
Red: Local uncommitted changes, not check in to index
Green: Local changes checked in to index but not committed
Yellow: frontend and master branches
5 blues in a line: These are commits made on frontend before yesterday’s merge
Tan box: my repo on Github (remotes/origin/master)
Bottom green box: the production site (remotes/production/master)

What happened

Last night I did git stash on frontend to clear my working tree, then git checkout master then git merge frontend.

The merge ran into conflicts, then in an attempt to reverse the merge I ran git reset HEAD@{1}, and now I’m here and I don’t know what to do to clean this up.

I would ideally like to have my two branches back with their separate dirty working trees (frontend’s working tree is stored in stash and master’s was merged). Thank you for any help you can give.

  • 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-29T09:45:00+00:00Added an answer on May 29, 2026 at 9:45 am

    Use git reflog to find out where your HEAD was before you did the git reset HEAD@{1}. Then reset back to that.

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

Sidebar

Related Questions

I have two relative layouts that are currently displayed one below the other. I
I'm a relative beginner with WPF so please bear with me. I have a
Scheme relative URLs (network-path references) are something that I've just found out about -
I have a relative path (e.g. foo/bar/baz/quux.xml) and I want to pop a directory
Questions - (Relative Code Below) I have a custom class which is a BindableDictionary().
I have developed Relative layout for 3.7 droids with Relative layout and difficult relations
I'm a relative beginner with OpenGL (I'm not counting the ver. 1.1 NeHe tutorials
Multilevel relative import I have following folder structure top\ __init__.py util\ __init__.py utiltest.py foo\
UPDATE: Relative to the questions and answers below, it seems I have a misunderstanding
I'm a relative beginner to C and I need to learn how makefiles work

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.