현재 내가 작업하고 있는 git branch를 확인합니다.
>>> git branch
* master
단독 branch를 새로 만들려면 새로운 이름을 지정해줍니다.
git branch newbranch
다른 branch에서 분기를 생성하려면 뒤에 해당 branch를 붙여줍니다.
>>> git branch devel master
이렇게하면 branch가 새로 생성됩니다.
>>> git branch
* master
newbranch
'CS & Programming' 카테고리의 다른 글
Ubuntu(Linux) cmake 최신 버전 설치하기 (0) | 2023.01.12 |
---|---|
Linux/Ubuntu(리눅스/우분투) 하위 "폴더만" 삭제하기 (0) | 2022.12.30 |
Ubuntu rm: descend into write-protected directory 'X', 파일 권한 코드를 알아보자 (0) | 2022.12.07 |
vscode에서 black으로 code format 자동화하기 (python) (0) | 2022.04.03 |
Ubuntu 20.04에서 swap 메모리 설정하기 (0) | 2022.04.02 |