-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
GitGit / GithubGit / Github
Description
git branch 관련 명령어
- branch 생성/변경
git branch 브랜치명
git checkout 브랜치명
git checkout -b 브랜치명 # 생성과 변경을 동시에- 로컬 branch 삭제
git branch -d 브랜치명 # --delete
git branch -D 브랜치명 # --delete-force - 원격 branch 삭제
git push ${remote_branch_name} --delete ${local_branch_name}- 원격 branch 확인
git remote update # 원격 브랜치에 접근하기 위해 갱신
git branch -r # 원격 branch 리스트 보기
git branch -a # 원격/로컬 branch 리스트 함께 보기
- 원격 branch를 로컬로 가져오기 - clone/pull 명령은 branch를 같이 받아오지 않음
git checkout -t origin/브랜치명 # branch를 생성하면서 checkout- Reference
Metadata
Metadata
Assignees
Labels
GitGit / GithubGit / Github