Help with git

Nuno Martins nuno.m.g.martins at gmail.com
Fri Aug 8 13:30:24 EDT 2014


On Fri, Aug 8, 2014 at 6:04 PM, Nick Krause <xerofoify at gmail.com> wrote:

> On Thu, Aug 7, 2014 at 11:13 PM, Nick Krause <xerofoify at gmail.com> wrote:
> > On Thu, Aug 7, 2014 at 11:05 PM,  <Valdis.Kletnieks at vt.edu> wrote:
> >> On Thu, 07 Aug 2014 22:25:06 -0400, Nick Krause said:
> >>
> >>> 1. git clone linux-next
> >>
> >> Before you do the git add, you *really* want to create a branch for
> >> yourself to work on.
> >>
> >>> 2. git add file changed
> >>
> >> Because otherwise this will get dumped on one of 200+ linux-next
> branches
> >> and cause acute indigestion the next time you do a 'git remote update'.
> >
> >
> > That was stupid :(. Guess I known how to do it now.
> > Thanks Nick
>
>
> I am tried your idea and not working. Really weird, seems I am not
> using the correct commands.
> The commands I am using are
> 1.git branch next
> 2.git remote add -t master -f next
> git://git.kernel.org/pub/scm/linux/kernel/git/sfr/linux-next.git
>
> And that's it. I hit the git message of this,
>
> usage: git remote add [<options>] <name> <url>
>
>     -f, --fetch           fetch the remote branches
>     --tags                import all tags and associated objects when
> fetching
>                           or do not fetch any tag at all (--no-tags)
>     -t, --track <branch>  branch(es) to track
>     -m, --master <branch>
>                           master branch
>     --mirror[=<push|fetch>]
>                           set up remote as a mirror to push to or fetch
> from
> Nick
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

I believe you didn't add a name for that remote yet.

Probably you need to give it a name to that new remote (eg. nextremotename)

2.git remote add -t master -f next nextremotename
git://git.kernel.org/pub/scm/linux/kernel/git/sfr/linux-next.git

Cheers,
-- 
Nuno Martins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140808/4bc56311/attachment.html 


More information about the Kernelnewbies mailing list