add note git push all
This commit is contained in:
parent
594e9890c2
commit
84d813afae
21
public/notes/2021/02-git-push-all.gmi
Executable file
21
public/notes/2021/02-git-push-all.gmi
Executable file
@ -0,0 +1,21 @@
|
||||
# Отправка исходников в несколько репозиториев Git одной командой
|
||||
|
||||
=> ../ Back to home
|
||||
|
||||
1. Создаем новый remote например all
|
||||
```
|
||||
git remote add "all" git@github.com:username/my-repo.git
|
||||
```
|
||||
|
||||
2. Добавляем в него несколько адресов для пуша
|
||||
```
|
||||
git remote set-url --add --push "all" git@username/my-repo.git
|
||||
git remote set-url --add --push "all" git@bitbucket.org:username/my-repo.git
|
||||
```
|
||||
|
||||
3. Чтобы запушить сразу в два репозитория выполняем
|
||||
```
|
||||
git push all
|
||||
```
|
||||
|
||||
=> https://gist.github.com/oleglomako/eaacd8670bda3720a37de2c8acaf910e Thanks, oleglomako
|
@ -3,3 +3,4 @@
|
||||
=> ../ Back to home
|
||||
|
||||
=> 2021/01-elementary-os-double-click.gmi Активация двойного клика в проводнике Elementary OS
|
||||
=> 2021/02-git-push-all.gmi Отправка исходников в несколько репозиториев Git одной командой
|
||||
|
@ -3,6 +3,7 @@
|
||||
=> ../ Back to home
|
||||
|
||||
> Watching
|
||||
* Assault Lily: Bouquet [TV] [3/12]
|
||||
* Adachi to Shimamura [TV] [4/12]
|
||||
* Beelzebub [TV] [8/60]
|
||||
* Black Clover [TV] [122/170]
|
||||
@ -30,6 +31,7 @@
|
||||
* Kite Liberator [OVA] [1/1]
|
||||
* Kokoro Connect [TV] [13/13]
|
||||
* Log Horizon [TV] [25/25]
|
||||
* Lostorage incited WIXOSS [TV] [12/12]
|
||||
* Majo no Tabitabi [TV] [12/12]
|
||||
* Next A-Class [ONA] [1/1]
|
||||
* No Game No Life [TV] [12/12]
|
||||
|
Loading…
Reference in New Issue
Block a user