local에서 작업하던 git repository gitlab에 올리기
Local에서 혼자 작업하던 git repository를 gitlab에 올리려면 0. 먼저 gitlab에 SSH Key를 등록해두는 것이 좋다. https://lilymate.tistory.com/741 1. gitlab에 project를 생성해놓고 (Clone with SSH로) repository 주소를 복사한다. 2. local repository에서 아래 명령을 입력한다. 위에서 복사한 repository주소를 뒤에 붙여준다. git remote add origin 복사한Repository주소(예: git@gitlab.com:xxx.git) 3. GIT PUSH git push -u origin master gitlab 해당 project에 보면 push한 repository가 생겼다.
2023.11.07