阿里云git安装
2021-11-27 程序界 1495
环境 window10 + GIT
用Git远程拉去项目
报错Unable to negotiate with xx.xx.xx.xx port 22: no matching key exchange method found.
Their offer:diffie-hellman-group1-sha1
创建无后缀文件config
Host * HostkeyAlgorithms +ssh-rsa PubkeyAcceptedKeyTypes +ssh-rsa
windows10生成秘钥
一、输入ssh-keygen -t rsa -C "xiao990987@163.com" 生成ssh key
二、 输入cat C:/Users/Administrator/.ssh/id_rsa.pub,查看生成的ssh key
git 添加标签
git push --tags git tag -a v1.4 -m 'version 1.4' # 解决方案,切换 composer 镜像地址 # composer config -g repo.packagist composer # 清理cache git rm -r --cached . git add . git commit -m 'update .gitignore' # 创建分支 git branch -M main git push -u origin main # 推送到 main # 强制拉回 覆盖本地 git fetch --all git reset --hard origin/master git pull '''
很赞哦! (0)
相关文章
文章评论
-
-
-
0条评论