ops/github2 [github] 로컬 리포지터리를 github에 푸쉬하기 https://docs.github.com/en/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github Adding locally hosted code to GitHub - GitHub DocsIf your code is stored locally on your computer and is tracked by Git or not tracked by any version control system (VCS), you can import the code to GitHub using GitHub CLI or Git commands.docs.github.com 2024. 10. 7. [github] 생성된 로컬 리포지터리를 github에 올리기 로컬 디렉터리가 아직 깃 리포지터리가 아닐때 git initgit add README.mdgit commit -m "first commit"git branch -M maingit remote add origin 깃허브 리포지터리 주소git push -u origin main 로컬 디렉터리가깃 리포지터리 일때 git remote add origin 깃허브 리포지터리 주소git branch -M maingit push -u origin main 2024. 7. 3. 이전 1 다음