Git
react 프로젝트 생성 후 git 연동 (저장소는 프론트, 백 나눠서 써야함)
pjh8838
2024. 7. 18. 18:27
반응형
1. react 프로젝트 생성
create-react-app
react-router-dom도 다운로드
환경설정 수정
2. 프로젝트 수정
변경사항 생기면
프로젝트 파일 git bash로 열기
프로젝트 파일에 .git 파일 있으면 삭제
git init
git add .
git commit -m "커밋메세지"
git branch -M main ----> 이건 main브랜치명 안해도됌
git remote add origin 저장소 주소 (원격저장소 연결)
git push -u origin main
3. 팀원들은
프론트 저장소 git clone 후 수정하고 commit, push 하면됌
728x90
반응형