로컬 프로젝트 깃허브에 올리기

에구마·2022년 6월 24일
0

GitHub

목록 보기
2/2
  1. 깃허브에 Create Repository
  2. 로컬에 파일 만들기
  3. 로컬 프로젝트에서
npx creat-react-app {플젝명} --template typescript
  1. 터미널 명령어
git init
git remote add origin {복사한 주소}
git pull origin main
git pull origin main --allow-unrelated-histories

git branch main
git checkout main

warning : LF will be replaced by CRLF

git config --global core.autocrlf true
git add . //스테이징
git status //확인
git commit -m '{커밋메세지}' //커밋

fatal: refusing to merge unrelated histories

git pull origin {브랜치명} --allow-unrelated-histories
profile
Life begins at the end of your comfort zone

0개의 댓글