„Git init” nie powiodło się, co się stało?
Ten problem nie jest taki sam jak „Nieprawidłowy plik konfiguracyjny .git / config„, ponieważ nie powiodło się podczas używaniagit init
.
Wygląda na to, że nie ma nic złego w /home/mirror/.gitconfig:
[mirror@home php]$ git init
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line 8 in /home/mirror/.gitconfig
To jest treść ~ / .gitignore:
cat ~/.gitconfig
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
[user]
email = [email protected]
name = xxxxx
[push]
default = simple