먼저 새로운 깃 서버에서 빈 저장소를 하나 생성한다.

(이때 아무것도 없는 깨끗한 상태의 빈 저장소이어야 한다.)

 

본인 PC 로컬에 새로운 폴더를 하나 만든다.

콘솔창을 열고 해당 폴더로 이동한다.

 

해당 폴더에서 기존 서버 저장소의 내용을 내려 받는다.

 

git clone --mirror <기존 저장소 주소> .\

 

기존 서버와 연결을 끊는다.

 

git remote rm origin

 

새로운 저장소 주소로 연결한다.

 

git remote add origin <새 저장소 주소>

 

새 저장소로 전부 업로드한다.

git push --mirror

 

다른 폴더에서 클론을 받아서 로그, 태그, 브랜치 등을 확인한다.

위와 같이 솔루션 이름 뒤에 브랜치 이름을 붙일 수 있는 플러그인 발견했다.

 

플러그인 다운로드 경로 : marketplace.visualstudio.com/items?itemName=mayerwin.RenameVisualStudioWindowTitle

 

Customize Visual Studio Window Title - Visual Studio Marketplace

Extension for Visual Studio - This lightweight extension allows changing the window title of Visual Studio to include a folder tree with a configurable min depth and max depth distance from the solution/project file, and the use of special tags to help wit

marketplace.visualstudio.com

 

git을 사용하면 경우엔 위와 같은 식으로 설정하면 된다.

 

+ Recent posts