git quirk

Hal Murray hmurray at
Tue Apr 3 10:16:25 UTC 2018

I made a fresh clone, fixed my .git/config, made the edit, commit-ed it, and 
tried to push.  It didn't work.

My "fixup" to .git/config ends up with:
[remote "origin"]
        url = git at
        fetch = +refs/heads/*:refs/remotes/origin/*
        push = +refs/notes/commits:refs/notes/commits
        fetch = +refs/notes/commits:refs/notes/commits
[branch "master"]
        remote = origin
        merge = refs/heads/master

The problem went away when I commented out the push line.

I'm guessing the space between the = and + is causing problems.  But I've 
broken my test case.

I added that as part of making Notes work (after a typo in a commit comment).
I thought I cut/pasted that chunk, but what I really cut/pasted was:
   git config --add remote.origin.push \
   git config --add remote.origin.fetch \

These are my opinions.  I hate spam.

More information about the devel mailing list