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