- 작성시간 : 2016/10/24 10:11
- 퍼머링크 : mcchae.egloos.com/11237088
- 덧글수 : 4
지난번 subversion 의 위치 변경에 이어 git 도 위치 변경이 필요했습니다.
우선 .git 이 있는 프로젝트로 가서
$ cd myproj
원격 URL을 확인하려면
$ git remote -v
origin ssh://future@imot1/home/git/myproj.git (fetch)
origin ssh://future@imot1/home/git/myproj.git (push)
이제 다음과 같은 명령으로 변경할 수 있습니다.
$ git remote set-url origin ssh://future@localhost:10022/home/git/myproj.git
subversion처럼 포트가 틀려도 직접 URL로 지정하면 됩니다.
다시 확인해 보면
$ git remote -v
origin ssh://future@localhost:10022/home/git/myproj.git (fetch)
origin ssh://future@localhost:10022/home/git/myproj.git (push)
이제는 기존과 동일하게 동작합니다.
$ git pull
...
어느분께는 도움이 되셨기를...
덧글