inblog logo
|
devJun
    git

    [git] git branch

    devJun's avatar
    devJun
    Aug 06, 2024
    [git] git branch
     
    💡
    코드를 효율적으로 관리할 때 사용
     
    notion image
    git status
     
    우선 브랜치를 만들기 전 현재의 상태를 확인한다. tree clean 상태가 아니라면 commit 후 실행하자.
     
    notion image
     
    git branch test
     
    test명으로 새로운 가지를 생성했다.
     
    notion image
    git branch
    현재 master 에서 test 로 옮겨보자
     
    notion image
     
    git checkout test
     
    test로 옮겼다.
     
     
    Share article

    devJun

    RSS·Powered by Inblog