프로그래머로부터 배우는 코딩의 기술

코스 전체목록

닫기

협업에 참여 (remote branch)

협업이란?

여러사람이 하나의 프로젝트를 개발하면서 발생할 수 있는 다양한 충돌상황에 대한 질서와 규범을 버전관리 시스템이 제공한다. 

리모트 브랜치(remote branch)

  • 리모트 저장소에 있는 브랜치를 의미
  • 리모트 저장소는 협업에 참여하고 있는 작업자들이 접속할 수 있는 중립된 저장소를 의미
  • 명명규칙은 (remote)/(branch) 형식

Github에 리모트 브랜치 만들기

댓글

댓글 본문
  1. 별모모
    [ github 커밋 오류 ] 처음 로컬 저장소에서 커밋할 때, "Please tell me who you are. ... Run ..."이 뜹니다. 요거 등록해야 git commit -m '변경 내용 요약' 처럼 커밋이 가능합니다. 강의 중에 들은 기억은 나는데, 생각이 안 나서 헤멧습니다.

    starmomo@starmomo-VirtualBox:~/github$ git commit -m 'first local_commit'

    *** Please tell me who you are.

    Run

    git config --global user.email "you@example.com"
    git config --global user.name "Your Name"

    to set your account's default identity.
    Omit --global to set the identity only in this repository.

    fatal: unable to auto-detect email address (got 'starmomo@starmomo-VirtualBox.(none)')
    starmomo@starmomo-VirtualBox:~/github$ git config --global user.email "andystarmomo@gmail.com"
    starmomo@starmomo-VirtualBox:~/github$ git config --global user.name "starmomo"
    starmomo@starmomo-VirtualBox:~/github$ git commit -m 'first local_commit'
    [master 4f4d3d2] first local_commit
    2 files changed, 142 insertions(+), 559 deletions(-)
    rewrite .vimrc (83%)
    delete mode 100644 README.md
    starmomo@starmomo-VirtualBox:~/github$
  2. 별모모
    [ 우분투에서 ] ssh-keygen으로 id_rsa.pub를 Github에 등록 후, 만든어 놓은 저장소를 한 번 땡겨 봤습니다. ^^ 1. github 디렉토리로 이동해서 2. (사전 등록한 github url)origin의 master을 땡겼습니다. 3. (경고)RSA host key가 영구적으로 추가되었습니다. (ip'192.30.252.129') 4. 계정대상 연결: 아홉, 완료 5. 압축대상연결: 일곱, 100% 완료. 6. 압축해제대상: 아홉개 100% 완료. 7. 요기서 부터... 아직 모름.


    starmomo@starmomo-VirtualBox:~$ cd github
    starmomo@starmomo-VirtualBox:~/github$ git pull origin master
    Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
    remote: Counting objects: 9, done.
    remote: Compressing objects: 100% (7/7), done.
    remote: Total 9 (delta 2), reused 0 (delta 0)
    Unpacking objects: 100% (9/9), done.

    From github.com:starmomo/.vimrc
    * branch master -> FETCH_HEAD
    error: Entry '.vimrc' not uptodate. Cannot merge.
    starmomo@starmomo-VirtualBox:~/github$
  3. 누렁이
    짝짝짝 감사합니다
버전 관리
egoing
현재 버전
선택 버전
graphittie 자세히 보기