git连接github使用

注意

出现

1
$ git: 'credential-cache' is not a git command. See 'git --help'.

解决
./git/config里面添加

1
2
3
4
5
[user]
name = username
email = username@gmail.com
[credential]
helper = cache

执行

1
2
3
4
$ git config --global user.name "username"
$ git config --global user.email "username@gmail.com"
$ git config --global credential.helper wincred

0%