|
|
1. 查看当前远程仓库配置
|
|
|
|
|
|
```sh
|
|
|
$ git remote -v
|
|
|
```
|
|
|
|
|
|
2. 在 git.supremind.info 创建新的项目
|
|
|
|
|
|
3. 添加新项目仓库
|
|
|
```sh
|
|
|
# remote-name 可任意指定, 如 sm
|
|
|
# repo 为 上一步创建的项目 git 地址
|
|
|
$ git remote add <remote-name> <repo>
|
|
|
```
|
|
|
|
|
|
4. 将本地分支 push 至新的远程仓库
|
|
|
```sh
|
|
|
# (Optional) 先将本地代码与原远程仓库同步
|
|
|
$ git pull --ff-only
|
|
|
$ git push -u <remote-name> <branch>
|
|
|
``` |
|
|
\ No newline at end of file |