问题一
ssh -T [email protected]
报错:sign_and_send_pubkey: signing failed: agent refused operation
[email protected]'s password
解决方法:
eval "$(ssh-agent -s)"
ssh-add
问题二
Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'tim@newton.(none)')
解决方法:
在工程目录下,进入隐藏文件夹.git,例如我的工程目录为UpdateEngine,
cd UpdateEngine/.git
ls发现config文件,
vi config
在最后加上
[user]
email = your email
name = your name
email和name随便写都行。
问题三,删除远程仓库文件
1、git pull origin master
2、在本地删除对应文件
git rm -r filename或者git rm --cache filename
3、提交
git commit -m "delete"
4、git push origin master
5、修改完成