一、命令行中查找获取自己的SSH公钥
cd /Users cd yjcd .ssh/cat id_rsa.pub
二、码云的个人设置中设置SSH公钥
设置-->SSH公钥
三、webstorm中添加remote
VCS-->Git-->Remotes中添加Remote
四、由于我已在码云上面新建了项目,所以需要先pull下来
git pull oschina master --allow-unrelated-histories
添加--allow-unrelated-histories防止出现冲突
五、push项目
点击项目找到Git--Reposity--push,在push的时候选择正确的Remote,然后正常push即可