Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- VirtualBox
- Windows
- web.xml
- plugin
- lsof
- ssh
- IntelliJ
- maVen
- Windows 10
- xargs
- netsh
- profile
- GIT
- grep
- resource
- context
- port
- Source
- Mac
- find
- tomcat
- Eclipse
- JavaScript
- import
- Quartz
- vscode
- 줄바꿈 문자
- 네트워크
- 단축키
- bash
Archives
- Today
- Total
develog
[git] multiple repository 에 push 하기 본문
remote origin 이 등록되어 있지 않으면 등록한다
## remote origin 을 등록한다
$ git remote add origin git@github.com:userAA/toy-project
## remote 정보 확인
$ git remote -v
origin git@github.com:userAA/toy-project (fetch)
origin git@github.com:userAA/toy-project (push)
origin 에 push url 를 하나 더 등록한다
## push url 을 하나 더 등록한다
$ git remote set-url --add --push origin git@github.com:userBB/toy-project
## remote 정보 다시 확인
$ git remote -v
origin git@github.com:userAA/toy-project (fetch)
origin git@github.com:userAA/toy-project (push)
origin git@github.com:userBB/toy-project (push)
push 해서 2개 url 에 등록되는지 확인한다
## push 명령 한번으로 2개 repo 에 push 된다
$ git push -u origin master
$ git push
추가한 push url 을 삭제하는 방법
## push url 을 삭제한다
$ git remote set-url --delete --push origin git@github.com:userBB/toy-project
Comments