나의 플랫폼/안드로이드
git 관련 명령어
GsBOB
2013. 10. 24. 17:55
[ repo reset ]
repo forall -c git reset --hard TAG
[branch 확인 방법]
cat .git/config
[ CR 제거 명령어. ]
find ! \( -path ./.git -prune \) -type f -exec sed -i -e 's/^M//g' {} \;
find ./ -name '*.java' | xargs -n 1 sed -i 's/\r//g'
git pull
git reset --hard [commit id]
git status
git add .
git commit -m "메세지"
git commit --amend
repo upload .
[Rebase 방법]
1. base로 바꿀 permalink로 이동.
2. pull 버튼을 선택 하고, 나온 값을 복사.
3. android 소스에서 git pull 진행.
4. pull 복사한 명령어를 붙여 놓고 실행.
(Auto-merging 파일이름.. <- 나오면 Local로 permalink가 pull된다.)
5. git rebase 최신commit ID
(위 명령어를 실행하면 git에 최신 commit ID 로 rebase 한다.)
6. repo upload . 진행.