On Fri, Nov 27, 2009 at 1:58 PM, Konstantin Khomoutov
> On Nov 27, 9:51 pm, Rick DeNatale <rick.denat...@gmail.com> wrote:
>>>> Some branches in git are tracking another branches (for example,
>>>> usually master tracks origin/master). Let's assume, that in my work-
>>>> flow i don't want accidentally commit in master, but i want master to
>>>> track origin/master. I release that i can do this with hooks, but this
>>>> solution seems to me complicated.
>>>> Can i make some git branches const?
>> I think that by definition a branch is a movable pointer to a commit,
>> so a const branch is a bit of an oxymoron.
>> The concept for a fixed pointer to a commit is called a tag. If I
>> want to mark a point I might want to get back to, such as the commit
>> corresponding to a current release, the I tag it and push the tag.
> Good point, but there's one exception: you can't fast forward a tag,
> while this is often the sole reason for the existance of the master
> as a mirror of origin/master.
> But then again, to fast forward a branch it must not be immutable ;-)
You can't fast forward, or merge to, a tag because it is a constant
pointer to a given commit. Which is what the OP seemed to be asking
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at