Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server.Branching and merging are fast and easy to do
Create a folder named Git_test.
Command : Cd git_test // go into that folder
Command : git init // initialise the git for this particular folder
Command:git clone git://git.omapzoom.org/kernel/omap.git android-2.6.35 //for getting the kernel source
or //Create a file : gvim one.c // it will create one file one.
command : git add one.c // It will add this file to a git server(local)
Command : git diff // this will give you the difference of what is not commited
Command : git commit -a // This will create a new page, in that give the commit message then save and close that page.
Command : git log // this will gives the message logs of all commit ID's
Command : git show
Command : git format-patch -1
Command : git am patchname.patch
Command : git branch -a //to see all branch an select any one branch for checkout.
Command : git checkout -b branchname actualbranch //to create a separate branch.
Command : git checkout branchname //to get into existing branch
Command : git push ssh://x0151836@omap:29418/kernel/omap HEAD:refs/for/p-android-omap-2.6.35 //for code submit
No comments:
Post a Comment