Professional Documents
Culture Documents
My Git Commands Usefull-Modified
My Git Commands Usefull-Modified
My Git Commands Usefull-Modified
***********************************
http://source.android.com/source/developing.html
http://source.android.com/source/life-of-a-patch.html
http://source.android.com/source/submit-patches.html
http://www.mediawiki.org/wiki/Gerrit/Advanced_usage
http://www.siteground.com/tutorials/git/commands.htm
http://git-scm.com/docs/git-add
***********************************************************************************
***********************************
>> repo sync -c -j4 // to sync just the branch files and fast
>> git init // run this inside the project directory ; to have the empty repository
initialized.
>> git status // to view the list of modified files. Also to see the state of the
branch.
>> git add -A // to add the modifed files into local repo for index list which
are required to be pushed on to server.
>> git commit -s // below details will be shown // to commit the files so as to
push to server with commit id
>> git commit --amend // When you upload the amended patch, it will replace the
original on gerrit and in your local git history.
>> git checkout filename // (to discard changes in working directory if any)
>> repo upload // tp push the committed files from local repository to server.
***********************************************************************************
*******************
***********************************************************************************
*******************
>> git rebase master // If the automatic rebase is unsuccessful, you will have to
perform a manual rebase.
That creates a directory named grit, initializes a .git directory inside it, pulls
down all the data for that repository, and checks out a working copy of the latest
version. If you go into the new grit directory, you’ll see the project files in
there, ready to be worked on or used.
That command does the same thing as the previous one, but the target
directory is called mygrit.