1.码云创建项目;
2.添加个人公钥;
3.Intellij Idea开始创建项目;
4.Intellij Idea中添加Git版本控制;
过程中遇到报错:
- Push failed: Failed with error: Could not read from remote repository.
- Push rejected: Push to origin/master was rejected.
- Git Pull Failed: refusing to merge unrelated histories
5.使用Git Bash操作命令如下:
- ssh -T git@gitee.com
- git pull git@gitee.com:xxx/xxxxx.git master --allow-unrelated-histories
- git push git@gitee.com:miklechun/basic_product_framework.git master
6.注意
此仅为参考,操作过程中可能忽略了某些操作。