블로그 옮겼습니다

Git 리모트 저장소 보기, url 변경하기, push하기, 브랜치명 바꿔올리기 본문

Development/Git

Git 리모트 저장소 보기, url 변경하기, push하기, 브랜치명 바꿔올리기

sgc109 2018. 5. 19. 00:07

remote 저장소 보기

git remote -v
origin  git@github.com:USERNAME/REPOSITORY.git (fetch)
origin  git@github.com:USERNAME/REPOSITORY.git (push)


remote 저장소 url 변경하기

git remote set-url origin https://github.com/USERNAME/REPOSITORY.git


remote 저장소에 push 하기

git push  <REMOTENAME> <BRANCHNAME> 


remote 저장소에 push 할때 다른 브랜치 명으로 올리기

git push  <REMOTENAME> <LOCALBRANCHNAME>:<REMOTEBRANCHNAME> 


Comments