On Fri, May 16, 2014 at 06:09:17PM -0400, Scott Kostyshak wrote:

> On Fri, May 16, 2014 at 6:01 PM, Enrico Forestieri <[email protected]> wrote:
> 
> > Now git is still someway trying to also push 2.0.x and I would
> > like to tell it not to do that, but I don't know neither why it still
> > insists on 2.0.x nor what I can do.
> 
> From what I understand, when you do a "git push" you only want to push
> the branch that you have checked out.

Exactly.

> If that's right, then putting
> the following should do that:
> 
> git config --global push.default current
> 
> Note the "global". I assume you want this for all Git-related projects.

Maybe you are right. But I have now found .git/config whose content is:

$ cat .git/config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        ignorecase = true
[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = [email protected]:lyx
[branch "2.0.x"]
        remote = origin
        merge = refs/heads/2.0.x
[merge]
        defaultToUpstream = true
[gui]
        wmstate = normal
        geometry = 1031x427+46+46 282 192
[branch "2.1.x"]
        remote = origin
        merge = refs/heads/2.1.x


and I simply plan removing the [branch "2.0.x"] stanza.

-- 
Enrico

Reply via email to