728x90
터미널 창에
1. git 초기화
git init
2. repository 연결
git remote add origin http://localhost:3000/Team.DandyDev/report-service.git (깃주소)
연결된 git fetch/ push 주소 확인
git remote -v
3. 브랜치 대상으로 check out
git checkout -b main
4. repository 원격 브랜치로 commit, push 하기 => git repository에 올리기
git add .
git commit -m 'first'
git push origin main
이렇게 진행시 새로운 repository에 원격 브랜치 main 생성되며 업로드 됨.
'형상관리 > git' 카테고리의 다른 글
[Git] git commit 후 잔디 안심어 질 때 원인 및 해결 방법(feat. 이름, 이메일 변경 할때 사용) (0) | 2024.12.17 |
---|---|
새로운 Branch 생성 (0) | 2024.07.25 |
[Git] git 저장소 히스토리 삭제 및 초기화 (0) | 2023.02.28 |
[git] push 전에 commit 내용 수정 방법 (0) | 2022.12.28 |
sourcetree에서 다른 브랜치에서 기존에 있던 브랜치를 병합 시키는 방법 (0) | 2022.09.02 |