NodeJS(4기) 42일차

형집·2023년 1월 11일

NodeJS(4기)

목록 보기
48/56

그동안 vsc의 gui로 때려 맞추면서 한 git 활용법 이제는 정리한다.

연결상태 확인
git remote -v
원격저장소 origin 지움
git remote remove origin
원격저장소 origin 연결
git remote add origin git주소
저장소에 모두 넣기
git add .

  • 오류!!
    warning: LF will be replaced by CRLF in bora.txt.
    The file will have its original line endings in your working directory

  • 해결

    git config --global core.autocrlf false

    https://dabo-dev.tistory.com/13

저장소꺼 다 가져와
git pull origin main

  • 오류!!
    fatal: refusing to merge unrelated histories
  • 해결
    git pull origin main --allow-unrelated-histories

https://gdtbgl93.tistory.com/63

커밋
git commit -m "commit1"
원격저장소에 push
git push -u origin main


profile
개발자

0개의 댓글