- repo forall -c ‘git reset –hard m/froyo’
- repo sync
- git checkout branch at_Branch_Name. [To Switch to branch]
- git branch 17March Or repo start at_New_Branch . [New Branch]
- git add .
- git commit –amemd -a or -as
- repo upload .
- repo upload –replace .
- git branch -de.g atul [to delete branch]
- repo forall -c “git log tu-01.08..tu-01.08″|
grep commit|awk ‘{print $2}’ [diff between two tu’s]
- git apply ../../temp/atkt.patch00000 [apply patch set]
- git am -3 001-usb-msm.patch platform/external/sonivox.git
- git reset –hard 234asd2342lk32
- git clean -f
- rm -rf .git/rebase-apply // git rebase –skip [instead.]
- git fsck
- git push ssh://gerrit.com:21414/platform/external/opencore.git HEAD:refs/for/froyo [to creaet new change id]
- git push ssh://gerrit.com:29418/platform/packages/apps/Contacts.git HEAD:refs/changes/10911
- If you want to used different mail id and name for particular branch, Run below command to change mail id for your particular[Single] branch this will ask your Name and Mail id. ” repo init “
- git commit –amend –author=”Atul Raut <atul.raut@ymail.com>”
- Change/set – in ALL your (local) repositories. This updates ~/.gitconfig
git config --global user.name Atul R. Raut
git config --global user.email atulraut17@gmail.com
=== How to rebase ===
"Create a new directory and 'cd' to it."
git init /* init git project new */
git fetch ssh://review-xxx.org:12181/kernel refs/heads/mykernel /* bring new kernel into it */
git checkout FETCH_HEAD /* make sure its latest */
git fetch ssh://review-xxx.org:12181/kernel refs/changes/10000
git cherry-pick FETCH_HEAD
"Update/fix conflicts files"
git add .
git commit -c FETCH_HEAD
git push ssh://review-xxx.org:12181/kernel HEAD:refs/changes/10000
git diff
git add
git commit -s -v
git format-patch LAST_LOCAL_COMMIT_ID
git show HEAD
git log --pretty=oneline --abbrev-commit
git show --pretty=oneline --abbrev-commit HEAD
git show HEAD | perl scripts/get_maintainer.pl --separator , --nokeywords --nogit --nogit-fallback --norolestats --nol
perl scripts/get_maintainer.pl --separator , --nokeywords --nogit --nogit-fallback --norolestats --nol -f drivers/staging/most/aim-sound/sound.c
git format-patch -o /tmp/ HEAD^