git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: "Not currently on any branch"

From
TWTimothy Washington <timothyjwashington@yahoo.ca>
Date
Oct 5, 2009, 04:01 UTC
Message-ID
<106990.92203.qm@web111508.mail.gq1.yahoo.com>
Thanks for all the responses so far. But if you take a look at my repo (http://repo.or.cz/w/Bookkeeping.git), at the bottom of the page, there's clearly a 'ui-integration' branch. But if I try to go to my ui-integration branch, I get the message below. So I'm just clueless as to where it went. If use the -b option, then I'll create a new branch. But I don't want that. I want to keep all the data that was in my original 'ui-integration' branch. 

[timothyw] ~/Projects/Bookkeeping.4 $ git checkout ui-integration error: pathspec 'ui-integration' did not match any file(s) known to git.

These are what's in the files under my .git/ directory. And again, I'm foggy as to where my ui-integration branch went and to how to get it back. 

"HEAD" cee341c53a249f7d003a12cfeb8cc743275d028f

"ORIG_HEAD" baca7c9f43e44d67406d3671e0afd84eaea870a3

"config"
[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
[remote "origin"]
    url = http://repo.or.cz/r/Bookkeeping.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master

"description" Unnamed repository; edit this file to name it for gitweb.

fig. 1 

Thanks Tim

________________________________
From: Clemens Buchacher <drizzd@aon.at>
To: Tim <timothyjwashington@yahoo.ca>
Cc: git@vger.kernel.org
Sent: Sunday, October 4, 2009 3:22:29 AM
Subject: Re: "Not currently on any branch"
On Fri, Oct 02, 2009 at 08:08:52PM +0000, Tim wrote:
> I have some code in a git repo that is "Not currently on any branch". Now,
> there's the master branch and another branch 'ui-integration' that I'm
> using in this project. I don't know how the project got into this headless
> state, but I need to be using the 'ui-integration' branch. 

It can happen either by explicitly detaching HEAD using "git checkout <commit>", or if you used rebase and it is still in progress.

Clemens

________________________________ Instant message from any web browser! Try the new Yahoo! Canada Messenger for the Web BETA

      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.
Next: Junio C Hamano
Message 1 of 2 in “Re: "Not currently on any branch"”
  1. Timothy WashingtonOct 5, 2009
  2. Junio C HamanoOct 5, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.