Skip to content

Instantly share code, notes, and snippets.

@murano500k
Last active March 30, 2017 14:55
Show Gist options
  • Save murano500k/4576c15b68d9c6009aad8eb8bfb853e8 to your computer and use it in GitHub Desktop.
Save murano500k/4576c15b68d9c6009aad8eb8bfb853e8 to your computer and use it in GitHub Desktop.
aosp git gerrit help
#don't remove repo
#remove only corrupted projects dirs
http://xda-university.com/as-a-developer/repo-tips-tricks
killall python
https://orga.cat/posts/most-useful-git-commands
export BRANCH_OLD="r-car-7"
export BRANCH_NEW="android-7.1.1_r22"
export BRANCH_OLD="gl-mirror/r-car-7"
export BRANCH_NEW="aosp/android-7.1.1_r22"
git log --oneline --no-merges $BRANCH_NEW ^$BRANCH_OLD
git merge-base $BRANCH_NEW $BRANCH_OLD
git branch -r | grep $BRANCH_OLD | wc -l
git branch -r | grep $BRANCH_NEW | wc -l
git clone ssh://[email protected]:29418/renesas/device/renesas/salvator/common
git checkout r-ncar
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/
git add [changes]
git commit -s #-s for signed by
git push gl-mirror HEAD:refs/for/r-car-7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment