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