If you need to clone a git repository you need to use the following command:
git clone git://git.kernel.org/pub/scm/bluetooth/bluez.git
To create a new repo from the scratch, first run:
git init
Then:
git add .
git commit
To create the initial git commit for this repo
To commit, after make your changes with your favorite editor do
git add file1 file2 file3 …
git commit
If you want to commit all the changes you made use
git commit -a
To check the changes before commit:
git diff
If you pass the –stat option to ‘git diff’ you will see a summary of lines changed by file.
To see the commit list
git log
If you pass the -p option the diff of the commit will be shown as well. For other logs, like commit by developer you can use ‘git shorlog’
If you wanna update you local tree with the origin tree, then
git pull origin
This will automatically merge your local tree with the new commits from the origin tree.