그동안 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
저장소꺼 다 가져와
git pull origin main
git pull origin main --allow-unrelated-historieshttps://gdtbgl93.tistory.com/63
커밋
git commit -m "commit1"
원격저장소에 push
git push -u origin main