그 외

[Git] 기초

swotato 2025. 9. 3. 15:41

파일명 대소문자 구분 여부

하나의 컴퓨터에서 계정 여러개 사용

remote branch 동기화 방법

  1. local branch 생성과 함께 remote branch forward 하도록.
  2. $ git checkout -t <remote>/<branch>
  3. 기존 local branch가 remote branch forward 하도록.
  4. $ git branch --set-upstream-to=<remove branch> <local branch> git branch --set-upstream-to=origin/gcp HEAD git push origin HEAD:refs/for/production

강제 Revert (되돌리기)