Home 깃 간단 사용법
Post
Cancel

깃 간단 사용법

간단 구조

  • 깃은 3가지 저장소를 가지고 있습니다.
    • 로컬 저장소
    • 스테이지 [ 임시 저장소 ]
    • 리모트 저장소

시작하기

  • 완전 신규
    1
    2
    3
    4
    
      $ git init
      $ touch readme.md
      $ git add .
      $ git commit -m "first commit"
    
  • 원격 저장소에서 복사해올 경우
    1
    
      $ git clone [원격지주소]
    

    브랜치

  • 생성
    1
    
      $ git branch
    
  • 브랜치 이동
    1
    
      $ git checkout [브랜치 명]
    
  • master의 변경사항 가져와 병합 하기
    1
    2
    3
    4
    
      $ git checkout master
      $ git pull
      $ git checkout [브랜치 명]
      $ git merge master
    
This post is licensed under CC BY 4.0 by the author.

@Autowired vs @Required on setter

alias setting

Comments powered by Disqus.

Trending Tags