2015년 6월 19일 금요일

git


=================================================
- 설치

http://www.git-scm.com/ 에서 다운로드

기본 설치

=================================================
- GUI 환경에서 다루기 위해 SourchTree 설치

http://www.sourcetreeapp.com 에서 다운로드 설치

=================================================
- git ignore 적용 시 윈도우에서 .파일명 안먹힐때

  1. Create the text file gitignore.txt
  2. Open it in a text editor and add your rules, then save and close
  3. Hold SHIFT, right click the folder you're in, then select Open command window here
  4. Then rename the file in the command line, with ren gitignore.txt .gitignore
=================================================

- 저장소 클론(다 가져오기)
git clone https://github.com/gsyan/Space119N.git
(실행된 폴더에 프로젝트명 폴더 생기고 그 안에 모든 파일들 복사됨)

-버전 다운
git checkout HEAD~1  : 한단계씩
git checkout HEAD~10

-다시 최신버전
git checkout master

-특정커밋으로 가기
sha : 8b3f06590783f7a570560d13b8d5022945c41767
git checkout 8b3f06590783f7a570560d13b8d5022945c41767




댓글 없음:

댓글 쓰기