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-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
|
||||
|
|
Loading…
Reference in New Issue