로컬에서 코드 작업을 하다가 github/gitlab에 올리고 싶으면 다음과 같이 하면 된다. 준비 작업: Github/Gitlab에서 우선 blank repo를 만들어줘야한다 (이때 README.md 없이 만들어야 편하니 참고) Gitlab/Github 동일하게 다음 snippet 실행 git init # 프로젝트를 git repo로 바꾼다 git checkout -b main # branch 이름을 main으로 하기 위해서 실행 git add . # 모든 파일 add git commit -m "initial commit" git remote add origin ssh:... # ssh:...는 완전히 blank 한 gitlab repo의 주소 git push -u origin main # remote..