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.注意
此仅为参考,操作过程中可能忽略了某些操作。
本文档详细介绍了如何在码云上创建项目,并通过IntellijIdea进行项目初始化及配置Git版本控制的过程。同时,针对推送失败、拒绝合并不相关历史等问题提供了具体的解决步骤。
569

被折叠的 条评论
为什么被折叠?



