[TOC]
Git 工具使用解决方案
1. 验证SSH登录
1
2
3
$ ssh -T git@github.com
# 返回以下内容则连接正确
"Hi jiangydev! You\'ve successfully authenticated, but GitHub does not provide shell access."
2. Git 进程启用
1
$ eval "$(ssh-agent -s)"
3. SSH密钥文件找不到
1
2
3
4
5
6
7
8
# 查看密钥文件
$ ssh-add -l
"The agent has no identities."
# 添加密钥文件
$ ssh-add /c/Users/(your)/.ssh/id_rsa
Enter passphrase for /c/Users/(your)/.ssh/id_rsa:
"Identity added: /c/Users/(your)/.ssh/id_rsa (/c/Users/(your)/.ssh/id_rsa)"
4. Windows下git status中文乱码
1
2
3
4
5
6
7
8
9
10
$ git status
"On branch master
Untracked files:
(use \"git add <file>...\" to include ...)
\"\346\225\260\...\350\214\203.md\"
nothing added to commit but untracked ..."
# 解决方案
$ git config --global core.quotepath false