[git-users] why git need branches?

2011-08-23 Thread pavan kumar
hi everyone, iam new to git, i have a few doubts. why git uses branches to work on and why it creates a default branch "master"? can anyone give this information? regards, pavan kumar. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group.

Re: [git-users] why git need branches?

2011-08-23 Thread Konstantin Khomoutov
On Tue, 23 Aug 2011 04:47:32 -0700 (PDT) pavan kumar wrote: > why git uses branches to work on Git does not need branches, a programmer is free to completely ignore the fact branches exist. > and why it creates a default branch "master"? Since Git supports branches, every repository must have on

Re: [git-users] git pull origin branch

2011-08-23 Thread Thomas Ferris Nicolaisen
On Sunday, August 21, 2011 11:41:50 PM UTC+2, Peter J Weisberg wrote: > > > There's nothing necessarily wrong with merge commits, but if you want to > straighten out your history before you push: > > $ git fetch origin > $ git rebase origin/branch > > You can also do it in one command like this:

[git-users] How to change tracked branch?

2011-08-23 Thread Andy Hardy
Hi, I'm using git svn to allow me to use git locally and then send back to our central svn repository. I generally tend to create tracking branches - usually based on an svn branch. Unfortunately, I started a tracking branch based on the svn trunk - I thought that the work would end up there soo

Re: [git-users] How to change tracked branch?

2011-08-23 Thread Konstantin Khomoutov
On Tue, 23 Aug 2011 14:33:18 +0100 Andy Hardy wrote: > I'm using git svn to allow me to use git locally and then send back to > our central svn repository. > > I generally tend to create tracking branches - usually based on an svn > branch. > > Unfortunately, I started a tracking branch based o

[git-users] Re: git tag -l - where are the associated

2011-08-23 Thread Phlip
> > for x in $(git tag -l); do > >    echo "$x\t$(git rev-parse $x)" > > done BTW that turns out to be: git show-ref --tags Awesome bash bashing, though! Now I'm still trying to go from a hashtag to a tag. I'll see if I can follow up when I find it - it should be easy, right? git show-ref

Re: [git-users] Re: git tag -l - where are the associated

2011-08-23 Thread Adam Prescott
On Tue, Aug 23, 2011 at 6:43 PM, Phlip wrote: > Now I'm still trying to go from a hashtag to a tag. I'll see if I can > follow up when I find it - it should be easy, right? > > git show-ref --tags | grep de049647a1ea285ce7791dc4ebf01ddfc564ddad > If the tag is the only ref for that commit, you