From: Junio C Hamano <gitster@pobox.com>
To: Timothy Washington <timothyjwashington@yahoo.ca>
Cc: git@vger.kernel.org
Subject: Re: "Not currently on any branch"
Date: Sun, 04 Oct 2009 21:19:09 -0700 [thread overview]
Message-ID: <7vd452iibm.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <106990.92203.qm@web111508.mail.gq1.yahoo.com> (Timothy Washington's message of "Sun\, 4 Oct 2009 21\:01\:20 -0700 \(PDT\)")
Timothy Washington <timothyjwashington@yahoo.ca> writes:
> 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.
I do not think it has anything to do with "Not currently on any branch",
but judging from this
> [remote "origin"]
> url = http://repo.or.cz/r/Bookkeeping.git
> fetch = +refs/heads/*:refs/remotes/origin/*
one possibility to see the above error message is to do this:
$ git clone http://repo.or.cz/r/Bookkeeping.git
$ cd Bookkeeping
$ git checkout ui-integration
error: pathspec 'ui-integration' did not match any file(s) known to git.
In a clone, your local branch namespace is not cluttered with all the
different branches your upstream repository has. To wit:
$ git branch
* master
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/ui-integration
If you want to further work on the ui-integration topic, you would do
something like:
$ git checkout -b ui-integration origin/ui-integration
Branch ui-integration set up to track remote branch ui-integration from origin.
Switched to a new branch 'ui-integration'
$ git branch
master
* ui-integration
On the other hand, if you are not interested in working on that topic but
just want to look at it, e.g. merge it to your master:
$ git branch
* master
$ git merge origin/ui-integration
without creating a local ui-integration branch at all (iow, skip that
"checkout -b" step above altogether).
next prev parent reply other threads:[~2009-10-05 4:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-05 4:01 "Not currently on any branch" Timothy Washington
2009-10-05 4:19 ` Junio C Hamano [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-10-02 20:08 Tim
2009-10-02 20:58 ` Steven Noonan
2009-10-02 21:46 ` Alex Riesen
2009-10-02 23:15 ` Sean Estabrooks
2009-10-04 7:22 ` Clemens Buchacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vd452iibm.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=timothyjwashington@yahoo.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).