GitTips

#

1.Add project to gitee

1
2
3
git remote add origin https://gitee.com/用户个性
git push origin master -f
# 强行push

###

2.git已经删掉的文件文件不存在,命令行解决

1
2
3
git add .
git commit -m "mark"
# xcode 提交不了,命令行可以

3.github已经添加了gpgkey,但是删除了rsa key 新建key还是用旧key,而且连接不上,需要删除github的旧key

4.新key链接时注意 

1
2
3
4
The authenticity of host 'github.com (192.30.255.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)?
要输入yes,添加knownhosts

5.hexo repo 要写ssh git@ 的地址

1
git push 到github时,报错:ERROR: Permission to xxx.git denied to user