Intellij Idea配置Git到码云

1.码云创建项目;
2.添加个人公钥;
3.Intellij Idea开始创建项目;
4.Intellij Idea中添加Git版本控制;

    过程中遇到报错:

  1. Push failed: Failed with error: Could not read from remote repository.
  2. Push rejected: Push to origin/master was rejected.
  3. Git Pull Failed: refusing to merge unrelated histories

5.使用Git Bash操作命令如下:

  1. ssh -T [email protected]
  2. git pull [email protected]:xxx/xxxxx.git master --allow-unrelated-histories
  3. git push [email protected]:miklechun/basic_product_framework.git master
6.注意

    此仅为参考,操作过程中可能忽略了某些操作。


你可能感兴趣的:(分享)