pulling git -- version confusion

6 messages, 2 authors, 2016-06-15 · open the first message on its own page

pulling git -- version confusion

From: Rustom Mody <hidden>
Date: 2016-06-15 22:47:41

I did a git pull today

When I compile it
git  --version gives
git version 1.6.3.3.334.g916e1

Whereas latest stable shown on http://git-scm.com/
is 1.6.5.2.


Note:

git branch shows a star before master

git tag contains v1.6.5.2 as well as v1.6.3.3

When I checkout branch next
git version becomes  1.6.0.rc1.194.g9e4e

Can someone explain whats happening or am I missing something basic?

Re: pulling git -- version confusion

From: Sverre Rabbelier <hidden>
Date: 2016-06-15 22:47:41

Heya,

On Mon, Nov 9, 2009 at 07:14, Rustom Mody [off-list ref] wrote:
When I checkout branch next
git version becomes  1.6.0.rc1.194.g9e4e
Try either:
$ git checkout master
$ git reset --hard origin/master

or:
$ git checkout next
$ git reset --hard origin/next

Followed by:
$ make
$ ./git --version

-- 
Cheers,

Sverre Rabbelier

Re: pulling git -- version confusion

From: Sverre Rabbelier <hidden>
Date: 2016-06-15 22:47:41

Heya,

On Mon, Nov 9, 2009 at 08:45, Rustom Mody [off-list ref] wrote:
Gives me
fatal: ambiguous argument 'origin/master': unknown revision or path
not in the working tree.
Use '--' to separate paths from revisions
Well, as what remote do you have upstream configured?

What is the output of
$ git config -l

-- 
Cheers,

Sverre Rabbelier

Re: pulling git -- version confusion

From: Rustom Mody <hidden>
Date: 2016-06-15 22:47:41

On Mon, Nov 9, 2009 at 12:07 PM, Sverre Rabbelier [off-list ref] wrote:
Heya,

On Mon, Nov 9, 2009 at 07:14, Rustom Mody [off-list ref] wrote:
quoted
When I checkout branch next
git version becomes  1.6.0.rc1.194.g9e4e
Try either:
$ git checkout master
$ git reset --hard origin/master
Gives me
fatal: ambiguous argument 'origin/master': unknown revision or path
not in the working tree.
Use '--' to separate paths from revisions
or:
$ git checkout next
$ git reset --hard origin/next
Likewise here
Followed by:
$ make
$ ./git --version

--
Cheers,

Sverre Rabbelier

Re: pulling git -- version confusion

From: Rustom Mody <hidden>
Date: 2016-06-15 22:47:41

On Mon, Nov 9, 2009 at 1:21 PM, Sverre Rabbelier [off-list ref] wrote:
On Mon, Nov 9, 2009 at 08:45, Rustom Mody [off-list ref] wrote:
quoted
Gives me
fatal: ambiguous argument 'origin/master': unknown revision or path
not in the working tree.
Use '--' to separate paths from revisions
Well, as what remote do you have upstream configured?

What is the output of
$ git config -l
gives me

core.safecrlf=true
user.email=<my email>
user.name=<my name>
core.repositoryformatversion=0
core.filemode=true
gui.geometry=885x450+0+27 207 192

So theres no remote?
But .git/remotes/origin has

URL: git://git.kernel.org/pub/scm/git/git.git
Pull: refs/heads/master:refs/heads/origin
Pull: refs/heads/maint:refs/heads/maint
Pull: refs/heads/next:refs/heads/next
Pull: refs/heads/html:refs/heads/html
Pull: refs/heads/pu:refs/heads/pu
Pull: refs/heads/todo:refs/heads/todo
Pull: refs/heads/man:refs/heads/man

Also [I just tried this] if I make a fresh repo directly and then do a git pull
it gives a fatal: where do you want to fetch from

But with the git repo pull (seems to be) pulling all sorts of stuff
and not erroring out.

Re: pulling git -- version confusion

From: Sverre Rabbelier <hidden>
Date: 2016-06-15 22:47:41

Heya,

On Mon, Nov 9, 2009 at 14:24, Rustom Mody [off-list ref] wrote:
So theres no remote?
But .git/remotes/origin has
Ick, how about switching to:
$ git remote add origin"git://git.kernel.org/pub/scm/git/git.git"

And then you can do what I said earlier?

-- 
Cheers,

Sverre Rabbelier
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help