//解决方法,在git库的目录下 //明明一开始建立user的时候有执行这个命令,不知道什么缘由 chown -R git:git mygit.git
//Git本地中文文件名问题解决 git config --global core.quotepath false
//1 建立用户 git config --global user.name "你的名字" git config --global user.email "你的邮箱" //2 建立秘钥(用来防止每次commit或push都须要密码) ssh-keygen -t rsa -C "你的邮箱" //3 取得公钥(找到.ssh目录下的id_rsa.pub文件)
参考了:
https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137583770360579bc4b458f044ce7afed3df579123eca000
http://www.javashuo.com/article/p-tohulhry-hu.htmlhtml