2015. 9. 11. 12:07 devel/etc

git

git

kernel source?
#1. source download
git clone git://어쩌고저쩌고.git
예시
git clone git://github.com/gumstix/linux.git

혹은 아예 처음부터 이렇게 branch를 명시해도 ok

git clone git://github.com/gumstix/linux.git -b omap-3.5


#2. check branch list
git branch -r

#3. checkout branch(머랄까 다운받은 마스터 소스에 원하는 브랜치로 패치하는 느낌)
git checkout origin/원하는 브랜치 이름

#4. 기타 git으로 source를 export하고 싶을 때(svn의 export)
소스 클론 받은 디렉토리 들어가서
git checkout-index -a -f --prefix=/export 하고 싶은 경로/

#5. 그 외
원격 저장소를 생성하고 싶을 경우(svnadmin create repository name 비슷)
-a. git 서비스가 제공할 repository 디렉토리를 설정
    까먹음... 어떻게 했더라
    예시 :
    mkdir /GIT_REPO

-b. repository 디렉토리 이쁜거 하나 만듬
    mkdir /GIT_REPO/repo_sample

-c. 디렉토리 들어가서 git init --bare
    cd /GIT_REPO/repo_sample
    git init --bare

-d. ~끝~


아 배고파
 


git server의 ip가 바뀌거나 ip는 그대로이나 mac이 바뀌었을 경우

git remote set-url origin 아이디@아이피주소_혹은_url:/repository_directory


참고

http://stackoverflow.com/questions/7318918/fatal-does-not-appear-to-be-a-git-repository

'devel > etc' 카테고리의 다른 글

intel software academic program  (0) 2015.12.10
minimal linux live  (0) 2015.12.10
vim toggle  (0) 2015.08.27
크로스컴파일 실행 no such file or directory 문제해결  (0) 2015.06.29
virtual box의 가장 짜증나는점  (0) 2015.05.17
Posted by 쵸코케키

블로그 이미지
chocokeki
쵸코케키

공지사항

Yesterday
Today
Total

달력

 « |  » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

최근에 올라온 글

최근에 달린 댓글

글 보관함