버전 비교
비교대상
키
- 이 줄이 추가되었습니다.
- 이 줄이 삭제되었습니다.
- 서식이 변경되었습니다.
목차 |
---|
origin remote는 로컬 저장소의 원본 저장소를 지칭하며 origin은 clone 절차에서 자동으로 설정된다.
리모트 저장소 목록 보기
코드 블럭 |
---|
$ git remote [-v] origin upstream other_users_repo |
원격 저장소 추가
아래 명령으로 원격 저장소를 추가한다.
코드 블럭 |
---|
$ git remote add fake_test https://bitbucket.com/upstream_user/reponame.git; [remote "remote_test"] url = https://bitbucket.com/upstream_user/reponame.git fetch = +refs/heads/*:refs/remotes/remote_test/* |
원격 저장소 점검
코드 블럭 |
---|
git remote show upstream * remote upstream Fetch URL: https://bitbucket.com/upstream_user/reponame.git Push URL: https://bitbucket.com/upstream_user/reponame.git HEAD branch: master Remote branches: master tracked simd-deprecated tracked tutorial tracked Local ref configured for 'git push': master pushes to master (fast-forwardable) |
원격 저장소와 로컬 저장소 동기 방법
Git은 원격 저장소와 로컬 저장소 동기 방법을 제공한다. 세부 사용법은 해당 설명 페이지를 참고한다.
- git fetch
- git pull
- git push
발췌 포함 | ||||
---|---|---|---|---|
|