728x90
반응형
remote, remote add, remote show: 원격저장소와 연결
git remote add origin <remote_repository_url>: 원격저장소 연결
Local repository와 Remote repository를 연결.
- Remote repository의 단축이름(별칭)을 보통
origin으로 지정. - 이후, Remote repository url 대신 단축이름(별칭, alias) 으로 처리 가능함.
- 관례적으로 alias는 origin 을 사용함.
다음 명령어로 local repository와 remote repository를 연결함.
git remote add origin <remote_repository_url>
- 일반적으로
git remote add <단축이름> <remote_repository_url>형태임. git remote -v로 연결이 제대로 되었는지 확인.

git remote: remote_repository의 단축이름 확인.
현재 연결된 remote repository의 단축이름 을 보여줌 (verbose).
-v옵션을 줄 경우, 단축이름 과 url을 같이 보여줌.-vv옵션: 위의 정보에 더해서 tracking 정보 표시됨.
git remote show <remote_repository_단축이름>: 저장소 정보 확인
현재 연결된 remote repository의 구체적인 정보를 보여줌.
같이 읽어보면 좋은 자료들
2024.05.20 - [utils/git and github] - [Git] Git Summary (작성중)
[Git] Git Summary (작성중)
git이란2024.05.20 - [utils/git and github] - Git : 소개 git 설치 후 해줘야 하는 작업들[Git] git 설치 후 우선 해줘야 하는 작업들 (tistory.com)local repository 초기화2024.05.20 - [utils/git and github] - [Git] init : local repo
ds31x.tistory.com
2024.05.26 - [utils/git and github] - [Git] Tutorial: remote repository
[Git] Tutorial: remote repository
Remote Repository와 작업하기.이 문서는 Remote Repository와 작업하기 위한 기본적인 내용을 다룬다.Remote Repository는 github를 가정하며, 다음의 repository를 github에 처음 만들면 나오는 내용들을 살펴본다.
ds31x.tistory.com
728x90
'utils > git and github' 카테고리의 다른 글
| [Git] Tutorial: remote repository (0) | 2024.05.26 |
|---|---|
| [Git] Remote Repository (0) | 2024.05.26 |
| [Git] pull and fetch (0) | 2024.05.26 |
| [Git] push (0) | 2024.05.26 |
| [Git] Tutorial: 3-way merge, fast forward, and rebase (0) | 2024.05.26 |