Re: GIT: how do I update my local copy?

dmg wrote:
git pull

Tried that first:

> rm -rf librep
> git clone git://
Initialized empty Git repository in /home/alland/Sawfish/librep/.git/
remote: Counting objects: 15678, done.
remote: Compressing objects: 100% (3728/3728), done.
remote: Total 15678 (delta 11845), reused 15678 (delta 11845)
Receiving objects: 100% (15678/15678), 2.84 MiB | 159 KiB/s, done.
Resolving deltas: 100% (11845/11845), done.
> git pull librep
fatal: Not a git repository
> git pull git://
fatal: Not a git repository

Damned if I can work out the syntax it wants:

> git pull --help
       git pull <options> <repository> <refspec>...

       Runs git-fetch with the given parameters, and calls git-merge to merge
       the retrieved head(s) into the current
       branch. With --rebase, calls git-rebase instead of git-merge.
           The canonical format of a <refspec> parameter is +?<src>:<dst>;
           that is, an optional plus +, followed by the
           source ref, followed by a colon :, followed by the destination ref.

           The remote ref that matches <src> is fetched, and if <dst> is not
           empty string, the local ref that matches it
           is fast forwarded using <src>. Again, if the optional plus + is
           used, the local ref is updated even if it does
           not result in a fast forward update.


> git pull git:// librep:librep
fatal: Not a git repository


This is one of those man pages that only makes sense if you already know the answer.
The examples are all for complicated cases, not the elementary case that a newbie wants.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]