본문 바로가기

PROGRAMMING CODE/Git5

[Git] 현재 레파지토리가 잘못되었을때 현재 연결 된 레파지토리 확인 git remote -v origin ~~.git(fetch) origin ~~.git(push) 연결된 원격 저장소 삭제 git remote remove origin 다시 확인해보면 연결 된 레파지토리가 없다는 것을 알 수 있음 git remote -v 연결하고싶은 url 연결(연결할때 ssh로 하면 뭔가 오류 많아짐... 어려워) git remote add origin https://github.com/~~~ 2023. 2. 9.
[git] Error checking out submodules, 서브모듈 오류, 삭제 리액트로 Netlify배포를 시도했는데, 다음과 같은 오류가 떴다. Failed during stage 'preparing repo': Error checking out submodules: : fatal: No url found for submodule path '서브모듈주소' in .gitmodules : exit status 128 서브모듈이 뭔지 몰랐지만 검색해보니 라이브러리를 프로젝트에 좀 더 유연하게 사용할 수 있도록 해주는 도구라고 이해했다. git 저장소 안에 다른 git저장소를 디렉토리로 분리해 넣는것이다. 본인은 이전에 깃 이해도가 없을 때 리액트 배포를 위한 프로젝트를 진행 한 적이 있었는데 그때 submodule path 설정을 해두고 그대로 뒀던게 계속 문제가 됐던걸 인지하지 못하.. 2023. 2. 7.
[Git] unable to read tree, 기존 리액트 앱 업로드하기 https://hunter95001.github.io/crystalfox.github.io/Posts/GitHub/03.html Everything up-to-date 해결 hunter95001.github.io https://stratosphere.tistory.com/90 Git 초기 설정때 src refspec master does not match any. 문제 해결법 에러) git push -u origin master 입력시 error: src refspec master does not match any.error: failed to push some refs to 'ㄸㄸㄸㄸㄸㄸㄸㄸㄸㄸㄸㄸㄸㄸ' master 브랜치가 없어서 생기는 문제 해결방법 git add 파일이름(ex: in stratos.. 2022. 11. 17.
[Git] 배포 참고 자료들 https://velog.io/@whdms3368/React-git-push-부터-배포까지-정리 React : git push 부터 배포까지 정리 리액트 프로젝트 설치npx create-react-app 프로젝트 명cd 프로젝트 명npm startgit 에 프로젝트 push하기순서대로 진행하기git init 👉 내 git 내부에 Repository 생성!👉 해당 이미지처럼 Repository 내부에 들어 velog.io 깃허브로 배포&호스팅 https://www.hohyeonmoon.com/blog/react-js-github-pages-deploy/ React JS를 Github Pages에 호스팅하기 | Hohyeon Moon Hohyeon Moon iOS engineer. Code for a hap.. 2022. 11. 14.