Remote Repository
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
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 [์ด๋ฆ]