Contents

Develop
2015.08.18 00:41

[git] 쉬운 버전관리 Git 설명

Views 955 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

# 쉬운 버전관리 Git 설명

 

Part 1 기본

 

 1. Git 이란?
파일의 변경 이력을 관리할 수 있는 버전관리시스템
CVS, SVN과 달리 네트워크가 끊긴 상황에서도 버전 기록(commit) 가능
리누스 토발즈가 개발
GitHub.com 서비스를 통해서 확산
프로젝트별로 관리 가능
BitBucket, NForge 등은 무료 비밀 저장소 지원


 2. 다운로드, 설치
http://git-scm.com 에서 Windows, Linux, MacOSX 다운로드 가능


 3. 사용자 설정
코드를 변경한 사람의 이름과 이메일을 등록
git bash 실행
`git config --global user.email "kenu.heo@gmail.com"`
`git config --global user.email "kenu"`


 4. Git 시작하기
 `git init`
.git 폴더가 생기면서 이하 파일 버전관리 시작

 
 5. 관리 파일 추가하기
 `git add filename`
index에 추가. stage에 올라감.
 `git status` 명령으로 상태 확인

* Git 파일 상태
  * Workspace
  * Stage
  * Repository
  * Remote Repository

 6. 버전 등록하기
 `git commit -m "메시지"`


 7. 변경 이력 보기
 `git log`
 `git log --oneline`


 8. 이전 버전으로 복원하기
 `git reset --hard`
 `git reset --hard versionhash`


 9. 파일 제외하기
 .gitignore 파일에 패턴 추가

 


Part 2 코드 공유


10. GitHub 회원가입
 https://github.com


11. GitHub 프로젝트 만들기
 new Repository 메뉴 선택


12. 프로젝트 PC로 가져오기
 `git clone https://github.com/아이디/프로젝트명.git`
 `git clone https://github.com/그룹명/프로젝트명.git`


13. 원격 코드 가져오기
 `git pull`


14. 원격에 코드 올리기
 `git push`

 


[참고]
누구나 쉽게 이해할 수 있는 Git 입문
http://backlogtool.com/git-guide/kr/

 

Git 브랜치 배우기
http://learnbranch.urigit.com/

 

[출처] https://gist.github.com/kenu/bfcee2cc672805672b92


?

  1. [ios] AES256 알고리즘을 이용해 데이터 암호화/복호화 방법

    Date2015.07.21 CategoryDevelop Byhooni Views4184
    Read More
  2. [ios] @property의 속성 (strong, weak, copy) 사용 경우

    Date2014.08.08 CategoryDevelop Byhooni Views1770
    Read More
  3. [ios] UIView 계층구조

    Date2015.01.03 CategoryDevelop Byhooni Views1219
    Read More
  4. [htm] DOM에 대해 ㅎㅎ

    Date2003.04.23 CategoryEtc Byhooni Views14756
    Read More
  5. [html] 캐쉬된 웹페이지 사용하지 않도록 하는 방법

    Date2003.04.23 CategoryDevelop Byhooni Views13067
    Read More
  6. [html] 메타태그 사용예.. 은지나 바라~

    Date2003.04.23 CategoryDevelop Byhooni Views7250
    Read More
  7. [html] SVG(Scalable Vector Graphics) 간단 정리

    Date2014.02.13 CategoryDevelop Byhooni Views8866
    Read More
  8. [html] HTML5 튜토리얼 링크 ㅋㅋ

    Date2013.04.23 CategoryDevelop Byhooni Views12825
    Read More
  9. [git] 쉬운 버전관리 Git 설명

    Date2015.08.18 CategoryDevelop Byhooni Views955
    Read More
  10. [flash] 페이지 이동 (액션스크립트)

    Date2013.04.23 CategoryEtc Byhooni Views16287
    Read More
  11. [flash] 자동차 엔진의 원리 (4행정 사이클 그림)

    Date2013.04.23 CategoryEtc Byhooni Views21278
    Read More
  12. [flash] 맘에 드는 파이차트

    Date2013.04.23 CategoryEtc Byhooni Views12623
    Read More
Board Pagination Prev 1 ... 55 56 57 58 59 60 61 62 63 64 ... 98 Next
/ 98