2022년 1월 13일 목요일

GIT remote url 변경

https로 git clone된 폴더가 있다면, git remote url-set 명령어로 ssh로 변경이 가능하다.

git remote 확인 명령어
$ git remote -v

remote 주소 변경하기
$ git remote set-url origin git@github.com:{git-user-name}/{RepositoryName}.git

git remote add 하기
$ git remote add origin git@github.com:{git-user-name}/{RepositoryName}.git

!! 당연한 얘기지만 새로운 디렉터리를 생성하고 새롭게 remote 하기전엔 git init 진행 후 해주세요 !!

댓글 없음:

댓글 쓰기

우분투 NFS 설정

* 서버 설정 apt-get install nfs-common nfs-kernel-server rpcbind /etc/exports /home/xyz 192.168.0.X(rw,sync,no_root_squash,no_subtree_check)...