간단 git branch 명령어

JIY00N·2023년 7월 15일
0

Git

목록 보기
5/5

2023.07.15

1. branch 확인
git branch

2. 로컬에서 브랜치 삭제
git branch -d 삭제할브랜치명

3. main branch로 이동
git checkout main

4. main pull
git pull origin main

5. branch 생성
git checkout -b 생성할브랜치명

6. publish branch
git push -u origin 생성한브랜치명

7. 변경된 모든 파일을 Staging Area에 추가
git add .

8. commit
git commit -m "메세지"

9. 현재 작업 중인 로컬 브랜치를 원격 저장소의 동일한 이름의 브랜치로 push
git push origin

profile
블로그 이전 했습니다. https://yoon-log.vercel.app/

0개의 댓글