프로그래밍/spring
git 간단 사용법
GOHA
2026. 5. 28. 09:25
git 디렉토리 생성
1) c:\sample 디렉토리 생성
2) git init . 실행 (git 디렉토리 초기화 됨)git 리모트
1) git remote add origin http://sample.com/sample.git 명령으로 리모트 추가
2) remote 정보 보기
git remote show origin
3) remote 정보 업데이트
git remote update
4) git branch 정보 보기
git branch -r 또는 git branch -a
5) 특정 브랜치 정보를 가져오기
git checkout orgin/sample2
6) git push 전에는 checkout을 혹은 업데이트를 실행해서 정보를 동기화 한다.