공부/project version management

[git] remote 설정

doublemetal 2015. 4. 15. 12:08

local과 remote와의 연결관계 설정


- remote 정보 조회(v는 주소까지 출력)

git remote -v


- local에 origin이라는 이름으로 remote 정보 추가

git remote add origin http://id@address.com/project


- local의 origin remote 정보 제거

git remote remove origin


- local에 git 저장소 생성(초기화)

git init


- local에 remote의 clone 생성

git clone http://id@address.com/project