git clone <REMOTE-URL>          // 해당 remote 저장소의 데이터를 local로 저장(복사)한다.

git branch -a                    // 모든 Branch 를 보여준다. git branch <BRANCH-NAME>         // 새로운 Branch 생성 git branch -d <BRANCH-NAME>      // 해당 Branch 삭제 git checkout <BRANCH-NAME>       // 해당 Branch 로 이동

git add <FILE-NAME>              // 해당 파일을 Stage 으로 올리기. git commit -m "message"          // message 로 Commit 작성 git commit -a                    // Staging area 생략하고 tracked 파일들을 바로 Commit git commit --amend               // Staging area 를 이용해 신규 Commit으로 재작성(완료한 Commit을 수정할 때) git reset HEAD <FILE-NAME>       // 파일을 Staged 상태에서 Un-stage 상태로 변경 git checkout -- <FILE-NAME>      // 수정된 파일을 원상태로 복구 git log -<N>                     // 최근 N 개의 로그를 출력

git push                         // 현재 branch 의 내용을 remote 저장소로 push. git fetch                        // merge 하지않고, 현재 branch 의 remote 저장소에서 데이터 가져오기 git merge <BRANCH-NAME>          // 해당 branch 를 현재 branch 에 merge 한다. git pull                         // 현재 branch 의 remote 저장소 데이터를 자동 Merge.(fetch + merge)



Git 한글 가이드 설명서 https://git-scm.com/book/ko/v2



Git Reference https://git-scm.com/docs



출처: http://osebin.tistory.com/117?category=707965 [DREAM IT, WISH IT, DO IT]

+ Recent posts