1.在git上创建项目https://gitee.com/rgqancy/zgg-crm.git
2.执行如下命令:
PS D:\crm_boot\zgg-crm> git config –global user.name “任国强”
PS D:\crm_boot\zgg-crm> git config –global user.email “rgqancy@126.com”
PS D:\crm_boot\zgg-crm> git remote add origin https://gitee.com/rgqancy/zgg-crm.git
error: remote origin already exists.

3.解决上述error: remote origin already exists.
https://blog.csdn.net/top_code/article/details/50381432
修改[remote “origin”] url = 为目标地址。

PS D:\crm_boot\zgg-crm> git push
Enumerating objects: 47238, done.
Counting objects: 100% (47238/47238), done.
Delta compression using up to 4 threads
Compressing objects: 100% (18581/18581), done.
Writing objects: 100% (47238/47238), 47.09 MiB | 4.21 MiB/s, done.
Total 47238 (delta 24278), reused 46809 (delta 23976), pack-reused 0
remote: Resolving deltas: 100% (24278/24278), done.
remote: Powered by GITEE.COM [GNK-6.0]
remote: Create a pull request for \’SpringBootUpgrade\’ on Gitee by visiting:
remote: https://gitee.com/rgqancy/zgg-crm/pull/new/rgqancy:SpringBootUpgrade…rgqancy:master
To https://gitee.com/rgqancy/zgg-crm.git

  • [new branch] SpringBootUpgrade -> SpringBootUpgrade
    PS D:\crm_boot\zgg-crm>

版权声明:本文为rgqancy原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/rgqancy/p/15092303.html