把某个公司git项目迁移到gitee的步骤

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>
posted @ 2021-08-02 23:05  任国强  阅读(196)  评论(0编辑  收藏  举报