Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
git branches
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Wed Aug 01, 2012 9:03 pm    Post subject: git branches Reply with quote

Hi,

since I never can remember how to set up a git repo on my server so that i can push to that, I always follow a tutorial[1] and it gets me where I want.
Lately I noticed a slight difference in the behavior (well, actually it's only the look) of my repos and some of the public FLOSS git repos I use.
FLOSS repo:
Code:
$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
$


my repo:
Code:
$ git branch -a
* master
  remotes/origin/master
$


the local .git/config looks identical in both cases:
Code:
$ cat .git/config
[core]
   repositoryformatversion = 0
   filemode = true
   bare = false
   logallrefupdates = true
[remote "origin"]
   url = <censored-git-url>
   fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
   remote = origin
   merge = refs/heads/master
$

To be honest, I don't know what difference that makes, but I'd be interested in the details.
Unfortunately I didn't find anything in the docs, most likely because I don't know for what to search.

Thanks in advance for all hints.

[1] http://feeding.cloud.geek.nz/2008/12/setting-up-centralied-git-repository.html
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 474
Location: San Diego, California USA

PostPosted: Thu Aug 02, 2012 5:38 am    Post subject: Reply with quote

I'm not a total git expert. But I think the difference between the two might be that in the local case you said 'git branch master' instead of 'git checkout master'. Either way, I don't think it makes a big difference. Makes more of a difference when you do your push command.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum