Categories
Tags
AI airflow alias book build clang closure collection commandline config container DB decorator docker draft format functional generic git gradle intellij java JPA k3s k8s kafka kotlin linux loki monitoring msa neovim network nix poetry pointer python reflection shortcut Spring sql system-design testing web zero-copy
163 words
1 minutes
[Git]원격저장소 추가하기
개요
git 원격저장소 추가하기 정리 엄청 자주 하는 작업이지만 매번 찾아보면서 작업했기 때문에 이 참에 간단하게 정리한다.
절차
- git 저장소 만들기
git init
- 원격저장소 만들기(github)
README, .gitignore 파일 만들지 말것. 원격저장소랑 로컬 저장소랑 충돌남
- 로컬 저장소와 원격 저장소 연결
git remote add origin <원격저장소주소>
- 로컬 수정사항 반영하기
# 로컬 수정사항 반영 git add . # commit git commit -m "feat: first commit" #commit 이력으로 remote repository에 업로드 git push -u origin main