23.05.14 웹개발_솔로프로젝트(Github 사용하기)

Yeondong Choe·2023년 5월 13일
0

Github 사용 흐름 정리

초기 세팅 내용을 github main으로 저장하기
명령어: git checkout -b Setting / Setting이라는 이름으로 브랜치 생성
명령어: git add . / 작성한 코드 추가하기
명령어: git commit -m "first setting" / first setting이라는 이름으로 commit 하기 : local에 세이브 포인트 만들기
명령어: git push / git에 push 하기
github에서 pullrequestes 하기 -> merge 하기 : main에 작성한 코드가 저장됨
명령어: git checkout main / main으로 이동하기
명령어: git pull / main에 반영된 코드 가져오기

명령어: git checkout -b Header / Header라는 이름으로 브랜치 생성
명령어: git add . / 작성한 코드 추가하기
명령어: git commit -m "Header bar complite"
명령어: git push / git에 push 하기
github에서 pullrequestes 하기
여러명이 작업하는것처럼 진행하 수 있게 merge 하지 않기

이후 구현할때 메인으로 이동해서 구현할 컴포넌트의 브랜치 생성해서 만들기

profile
개발자 동동

0개의 댓글