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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:04:50+00:00 2026-05-27T23:04:50+00:00

The other day I was trying to push some changes to the remote server.

  • 0

The other day I was trying to push some changes to the remote server.

I kept getting an error so I looked to see what branch I was on.

I saw that I was un an undefined branch locally, which was really freaking weird so I checked out master and then was able to push.

Just checked out the merge and none of my changes were there. They aren’t here locally. 10+ hours of work, and I can’t find it anywhere.

I did a gitk and I don’t see any of my changes. I do see a merge of master that looks like this:

Author: Sara Chipps <sarajchipps@Sara-Chippss-MacBook-Pro.local>  2012-01-04 13:48:20
Committer: Sara Chipps <sarajchipps@Sara-Chippss-MacBook-Pro.local>  2012-01-04 13:48:20
Parent: 1a294db3a244d7aeaafbc99c986af86ce7cf17da (Merge branch 'master' of https://github.com/thing/thing)
Parent: 8ed995c7a5a370333ab27485be07f6a5f647e8d4 (added subscription button to edit profile section)
Child:  0dbf7e53737c0e7ee7ab908812299c1d60ef0c46 (removed coffee icon on getting started)
Branches: master, remotes/origin/master
Follows: 
Precedes: 

    Merge branch 'master' of https://github.com/thing/thing

I am not the only one committing to this project, I don’t know how I got on an undefined branch locally. Can anyone suggest a fix? Worried about losing a lot of work.

thank you.

  • 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-27T23:04:51+00:00Added an answer on May 27, 2026 at 11:04 pm

    Check

    git reflog
    

    That will give you a history of operations, and if your changes were checked in, they’ll be in a revision somewhere in that log.

    You might also look at the output from:

    git rev-list --all --header HEAD
    

    This will show a large chunk of what’s in the repository. You may need to work with -n to limit, and the output is a bit confusing. Have a look at the man page for git-rev-list for additional information. This will hopefully help figure out where you are.

    You can also create a branch at the current location:

    git branch my temporary
    

    Then use gitk

    gitk --all
    

    to get an idea too.

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

Sidebar

Related Questions

I saw this the other day (scroll all the way down to see some
In Visual Studio (C++) the other day, I was trying to build some example
The other day this code was working. I changed some things and re-ran it
The other day, I came across this construct: static_cast<size_type>(-1) in some example C++ code,
The other day I saw a colleague of mine using sort to sort a
Was trying to reference this the other day, and I've heard them called several
The other day I got this annoying oracle error: ORA-12705: Cannot access NLS data
The other day I set up an Ubuntu installation in a VM and went
The other day I decided to write an implementation of radix sort in Java.
The other day, I tweaked a script for a friend's World of Warcraft addon.

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.