본문 바로가기
프로그래밍/GIT

GIT 명령어 요약..

by 긱플레이어 2011. 10. 26.

git bash 에서 실행하는 명령어 입니다.

원격 저장소에서 로컬로 복사 해오기

git clone username@192.168.0.1:/project/ c:\work


 원격 저장소에서 최신 코드 받아오기

git checkout master (master 브랜치로 이동)
git fetch
git rebase origin/master 

 
 원격 저장소 branch 만들기

git push origin temp:temp  (로컬):(원격)



원격 저장소 branch 가져오기 

git checkout -b temp origin/temp (로컬) (원격)

 
원격 저장소 branch 지우기

git branch -rd origin/temp

git push origin :heads/temp

 

'프로그래밍 > GIT' 카테고리의 다른 글

GIT DiffMerge 설정.  (0) 2011.11.05

댓글