# 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 [이름]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dahye-jeong.gitbook.io/til/git/2019-01-09-git-remote.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
