git项目重新推送到服务器

ssh-keygen -t rsa -b 4096

查看公钥

cat ~/.ssh/id_rsa.pub

粘贴到git授权

$ git remote -v

设置源

git remote set-url origin ssh://[email protected]:80/project/project1.git
git push -u origin 推送当前分支

posted @ 2026-01-13 18:32  Python喵  阅读(7)  评论(0)    收藏  举报