반응형
  • GIT: author/commiter
    • 차이 
      • author: 특정 commit의 최초 저자
      • committer: 특정 commit에 commit --amend를 해서 여러개 쌓았을 때 마지막으로 쌓은 사람, 혹은 어떤 사람의 커밋을 cherry-pick해서 push했을 때 - author는 어떤사람이고 push한 내가 committer가 됨
    • author/committer로 남겨지는 이름을 변경하고 싶으면 git config로 세팅을 바꾸면 됨. 세팅 안되어 있으면 해당 컴퓨터내 사용자 이름이 자동으로 사용됨, 이렇게 자동으로 이름을 사용할 경우, warning 차원에서 커밋시 다음 메세지를 보여줌
      Your name and email address were configured automatically based
      on your username and hostname. Please check that they are accurate.
      You can suppress this message by setting 
      
          git config --global user.name "Your Name"
          git config --global user.email you@example.com
      
      After doing this, you may fix the identity used for this commit with:
      
          git commit --amend --reset-author
      Your name and email address were configured automatically based
      on your username and hostname. Please check that they are accurate.
      You can suppress this message by setting them explicitly. Run the
      following command and follow the instructions in your editor to edit
      your configuration file:
      
          git config --global --edit
      
      After doing this, you may fix the identity used for this commit with:
      
          git commit --amend --reset-author
  • GERRIT: owner/uploader/reviewer
    • 차이
      • owner: gerrit에서 code review를 생성한 최초 저자
      • uploader: gerrit에서 동일 code review에 여러개가 쌓였을 때 마지막으로 쌓은 사람
      • reviewer: 말그대로 review화면에서 보이도록 설정한 사람
    • gerrit code review에 남는 명칭
    • git config에 설정된 이름이 아니라 git ssh 계정을 따라 정보가 남음
    • hyungsub.song 데스크탑을 받아서 git까지 세팅된 것 그대로 사용하다가 review에 내이름이 아니라 hyungsub.song으로 잘못 남게 되는 것 발견함, 수정하기 위해서는 다음 과정을 거치면 됨
      • git remote -v
        • remote의 상세정보 확인, ssh://hyungsub.song@mod.lge.com:29450/rich-dev/cdp-web이었음
      • git remote remove origin
        • 기존 origin 삭제
      • git remote add origin ssh://sy919.kim@mod.lge.com:29450/rich-dev/cdp-web
        • origin 재등록
      • git remote show origin
        • origin 정상등록 확인, 권한이 없다느니 그런 에러가 남
        • 현재 이 로컬내 키 정보가 hyunsub.song의 계정에만 등록되어 있고 sy919.kim에는 없기 때문
        • 해결을 위해 /home/hyungsub/.ssh/id_rsa.pub내용을 카피해서 gerrit setting화면에 붙여넣자
        • 더 정확히 하기 위해 hyungsub.song계정 gerrit setting에 기존 등록된 id_rsa.pub는 삭제해면 여기로 더이상 남는 것 아예 방지가능함, 하지만 구지 여기까지는...

 

반응형

+ Recent posts