[Gta04-owner] Linux 3.5 on GTA04
NeilBrown
neilb at suse.de
Tue Jul 24 08:50:58 CEST 2012
On Tue, 24 Jul 2012 08:28:43 +0200 "Dr. H. Nikolaus Schaller"
<hns at goldelico.com> wrote:
> Hi,
> great work!
>
> Just for help for an infrequent user of git: what is the correct git command to update the local tree?
>
> I have tried (gta04 is a git remote for git://github.com/neilbrown/linux.git):
>
> git fetch gta04 && git reset --hard gta04/3.5.y
>
> but get
>
> fatal: ambiguous argument 'gta04/3.5.y': unknown revision or path not in the working tree.
> Use '--' to separate paths from revisions
>
> Using -- before or after gta04/3.5.y gives different error messages.
The name 'gta04/3.5.y' is known only in the context of the 'gta04' remote.
So
git branch -a
will list it like that.
You could
git checkout gta04/gta04/3.5.y
or you could make it a 'local' branch that follows the remote branch with
git --track gta04/gta04/3.5.y
which will give you a local branch called 'gta04/3.5.y'
if you want a different name, add "-b my-different-name".
NeilBrown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20120724/b24f8e14/attachment.bin>
More information about the Gta04-owner
mailing list