git branch 새로 만들며 소스 올리기

이우철·2025년 11월 1일

cd new-main # 프로젝트 폴더로 이동
git init # Git 저장소 초기화
git remote add origin https://github.com/wclee7/refund.git # 원격 저장소 연결
git checkout -b scrappingnew # scrappingnew 브랜치 생성 및 전환
git add . # 모든 변경 파일 스테이징
git commit -m "Initial commit on scrappingnew branch" # 커밋 메시지 작성
git push -u origin scrappingnew # scrappingnew 브랜치를 원격 저장소에 푸시

cf. 신규 repository 에 파일 올리기

git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/wclee7/refund_new.git
git push -u origin main

profile
개발 정리 공간 - 업무일때도 있고, 공부일때도 있고...

0개의 댓글