git使用笔记

修改.gitignore文件需要清理缓存

git rm -r --cached .
git add .
git commit -m 'update.gitgnore' 

git ssh上传公钥到服务器

ssh-copy-id -i ~/.ssh/id_rsa.pub root@address

~代表用户目录

posted @ 2020-12-22 14:33  zimz  阅读(51)  评论(0)    收藏  举报