Remote Repository
Remote Repository(๋ฆฌ๋ชจํธ ์ ์ฅ์)๋ ์ธํฐ๋ท์ด๋ ๋คํธ์ํฌ ์ด๋๊ฐ์ ์๋ ์ ์ฅ์๋ฅผ ๋งํ๋ค.
ํ์ฌ ํ๋ก์ ํธ์ ๋ฑ๋ก๋ 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)
Remote Repository ์ถ๊ฐํ๊ธฐ
$ git remote add [๋จ์ถ์ด๋ฆ] [url]
$ git remote add origin https://github.com/dh00023/gitpractice.git
Remote Repository ์ดํด๋ณด๊ธฐ
$ 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)
Remote Repository ์ด๋ฆ ๋ณ๊ฒฝ
$ git remote rename [AS-IS] [TO-BE]
Remote Repository ์ ๊ฑฐ
$ git remote rm [์ด๋ฆ]
Last updated
Was this helpful?