Remote Repository(리모트 저장소)는 인터넷이나 네트워크 어딘가에 있는 저장소를 말한다.
$ git remote
origin
-v
옵션을 주면 단축이름, URL을 함께 볼 수 있다.
$ git remote -v
origin https://github.com/dh00023/gitpractice.git (fetch)
origin https://github.com/dh00023/gitpractice.git (push)
$ git remote add [단축이름] [url]
$ git remote add origin https://github.com/dh00023/gitpractice.git
$ git remote show [단축이름]
$ git remote show origin
* remote origin
Fetch URL: https://github.com/dh00023/gitpractice.git
Push URL: https://github.com/dh00023/gitpractice.git
HEAD branch: master
Remote branches:
master tracked
practice tracked
Local branch configured for 'git pull':
master merges with remote master
Local refs configured for 'git push':
master pushes to master (up to date)
practice pushes to practice (up to date)
$ git remote rename [AS-IS] [TO-BE]
$ git remote rm [이름]