ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Github 정리 2
    bootcamp(with wecode)/개념정리 2023. 2. 16. 07:24

    1. git branch

    - 독립된 공간을 만들기 위함이다 

    git branch [브랜치명]

     

    2. git checkout

    - 작업 위치를 branch로 이동하기 위함이다

    - branch를 생성했다고 해서 위치가 동시에 이동되지 않음을 유의하자

    - branch를 생성했다면 반드시 checkout를 통해 이동한다

    git checkout [브랜치명]

     

    3. git pull

    - github에 잇는  code를 local로 가져오기 위함이다

    git pull origin [브랜치명]

     

    4. clone과 pull 차이점

    - clone : local에 code가 없을 때, repository 전체를 가져올 때 사용한다

    - pull : 이미 repository가 있고 특정 branch를 가져올 때 사용한다

     

     

    5. git merge

    - local에서 현재 branch code와 특정 branch code를 합칠 때 사용한다 

    git merge [브랜치명]

     

     

    위 명령어 이외에 github 관련 명령어를 추가적으로 정리해보자 

    'bootcamp(with wecode) > 개념정리' 카테고리의 다른 글

    Routing, SPA  (0) 2023.03.03
    Hook  (0) 2023.02.23
    Props  (0) 2023.02.23
    westagram wrap up  (0) 2023.02.19
    Github 정리  (0) 2023.02.15
Designed by Tistory.