生成 git 秘钥: git config --global user.name "你的名字(最好是中文全名,例章华隽)" git config --global user.email "你的邮箱地址(最好是公司邮箱,例huajun.zhang@xbongbong.com)" 然后之后发现在我的用户名文件夹中找不到 .ssh 文件,然后使用下面的命令就能生成文件啦 ssh-keygen -o 使用这个命令直接回车就好。 一般电脑都是下面这样的路径。