git一次推送多个仓库

This commit is contained in:
james 2024-07-25 01:28:12 +08:00
parent 7e669bc8da
commit 4d2536fd8c
1 changed files with 7 additions and 3 deletions

View File

@ -10,22 +10,26 @@ for more details.
[en.stsw-link007-v3-13-4.zip](./en.stsw-link007-v3-13-4.zip)
[en.stsw-link009.zip](./en.stsw-link009.zip)
## git clone
``` bash
git clone https://github.com/*.git
## git
``` bash
git clone https://github.com/*.git
git init
git add .
git commit -m "first commit"
# 给仓库地址设置一个别名(将本地项目与GitHub上的关联)
git remote add origin https://github.com/*.git
# 查看配置的仓库
git remote -v
# 删除别名
git remote remove origin
# 只需要push一次给origin 增加一个可以push的地址
git remote set-url --add origin git@github.com:*.git
git push -u origin master
```
## SConscript