0. 현재 상태 확인
git status
1. 원격 최신 변경 가져오기
git fetch
2. 원격 브랜치 목록 보기
git branch -r
3. 브랜치 전환
git checkout <브치이름>
git checkout -b <브랜치이름> origin/<원격브랜치이름>
4. 현재 브랜치 최신으로 업데이트
git pull
git pull --rebase
5. 수정한 파일을 커밋하기
git add .
git commit -m "메시지"
6. 원격 저장소로 push
git push
git push -u origin 브랜치이름
7. 수정사항 잠시 보관(stash)
git stash
git stash pop
8. 브랜치 목록 보기
git branch
9. 원격 주소 확인
git remote -v
10. 정말 마지막 수단 (git 리셋/초기화)
로컬 변경 되돌리기 (주의)
git reset --hard
git 자체 제거 후 새로 시작 (매우 주의)
rm -rf .git
git init
자주 쓰게 될 조합 3가지
A. 원격 최신 버전으로 업데이트
git fetch
git checkout integration_152
git pull
B. 원격에 새 브랜치 생겼을 때
git fetch
git checkout -b integration_152 origin/integration_152
C. 수정 후 저장 & 업로드
git add .
git commit -m "update"
git push
'타닥타닥' 카테고리의 다른 글
| gsplat install 오류 기록 (0) | 2025.11.24 |
|---|























