레이블이 git인 게시물을 표시합니다. 모든 게시물 표시
레이블이 git인 게시물을 표시합니다. 모든 게시물 표시

2011년 5월 16일 월요일

git for survival #2

1. Clone a specific branch(s)
$ git init
$ git remote add -t [branch0] -t [branch1] ... [remote_name] [git_url]
$ git fetch
$ git checkout -b [local_branch_name] [remote_name]/[remote_branch]

2010년 12월 20일 월요일

git color 설정 (by leesangho)

$ git config --global color.ui "auto"

This command let 'git status' show more colorful text.

2010년 8월 20일 금요일

Git for the lazy

http://www.spheredev.org/wiki/Git_for_the_lazy

내용이 많이 모자르긴 하지만, 우선 작업은 시작할 수 있게 해주는 정도?

2010년 8월 18일 수요일

git for survival... -_-;;


1. remote repository 가져 오기
git clone ssh://user@some.server.com/subdir/project.git

2. remote list 보기
git remote -v

3. remote 상세 정보 확인 (*origin : remote repository clone하면 자동으로 지정 됨)
git remote show origin

4. master branch가 없는 경우 특정 branch가져 오기
git branch --track -b brLocalName origin/brRemoteName

5. 변경 사항 확인
git status

6. 수정사항 stage
git add [Changed files]

7. Commit (Local repository만 변경됨!!)
git commit

8. Remote repository update (branch의 default값은 master, remote-name도 생략 가능)
git push [remote-name] [branch]

9. 변경사항 rollback
git checkout [file_name]

10. remote의 branch로 update하기 (clone로 가져와서 remote설정이 되어 있는 경우)
git pull