1. repo forall -c ‘git reset –hard m/froyo’
  2. repo sync
  3. git checkout  branch at_Branch_Name. [To Switch to branch]
  4. git branch 17March Or repo start at_New_Branch . [New Branch]
  5. git add .
  6. git commit –amemd -a or -as
  7. repo upload .
  8. repo upload –replace .
  9. git branch -de.g atul [to delete branch]
  10. repo forall -c “git log tu-01.08..tu-01.08″|
    grep commit|awk ‘{print $2}’ [diff between two tu’s]
  11. git apply ../../temp/atkt.patch00000 [apply patch set]
  12. git am -3 001-usb-msm.patch platform/external/sonivox.git
  13. git reset –hard  234asd2342lk32
  14. git clean -f
  15. rm -rf .git/rebase-apply    // git rebase –skip [instead.]
  16. git fsck
  17. git push ssh://gerrit.com:21414/platform/external/opencore.git HEAD:refs/for/froyo [to creaet new change id]
  18. git push ssh://gerrit.com:29418/platform/packages/apps/Contacts.git HEAD:refs/changes/10911
  19. 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
  20. git commit –amend –author=”Atul Raut <atul.raut@ymail.com>”
  21. 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^