“git init” failed, what's wrong?

前端 未结 6 1860
花落未央
花落未央 2021-02-07 10:26

This issue is not same as \"Bad git config file .git/config\", since it failed when using git init.

It seems there is nothing wrong with /home/mirror/.gitco

6条回答
  •  情深已故
    2021-02-07 11:06

    This problem keeps coming up now that git 1.8 is out. Luckily the message from git is now very helpful:

    warning: push.default is unset; its implicit value is changing in
    Git 2.0 from 'matching' to 'simple'. To squelch this message
    and maintain the current behavior after the default changes, use:
    
       git config --global push.default matching
    
    To squelch this message and adopt the new behavior now, use:
    
       git config --global push.default simple
    
    See 'git help config' and search for 'push.default' for further information.
    (the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
    'current' instead of 'simple' if you sometimes use older versions of Git)
    

    For example, emacs interface to git (vc) does not understand the argument 'simple', so you are better off using the argument 'matching' for the time being.

提交回复
热议问题