내가 사용하는 Git Commands

Yonghye Kwon·2020년 3월 22일
0
post-thumbnail

Branch

브랜치란 독립적으로 어떤 작업을 진행하기 위한 개념입니다. 필요에 의해 만들어지는 각각의 브랜치는 다른 브랜치의 영향을 받지 않기 때문에, 여러 작업을 동시에 진행할 수 있습니다.

Branch 생성

git branch <branch_name>

Branch 제거

// delete branch locally
git branch -d <localBranchName>

// delete branch remotely
git push origin --delete <remoteBranchName>

Branch 전환

git checkout <branch>

특정 Branch Clone

git clone -b <branch_name> --single-branch <저장소 URL>
profile
용혜입니다.

0개의 댓글