Git commands
# (From the work directory)
git daemon --verbose --export-all --base-path=.
# (From the work directory)
git clone git://localhost/hello.git network_hello
cd network_hello
// track branch1 branch from remote repository
git branch --track branch1 origin/branch1
git branch -a
// clone bare repository
git clone --bare hello hello.git
// add local bare repository as remote
cd hello
git remote add shared ../hello.git
git fetch
git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
git branch --set-upstream master origin/master
$ git fetch upstream
$ git checkout master
$ git merge upstream/master
$ git remote -v
origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (push)
$ git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
$ git remote -v
origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (push)
upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (fetch)
upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push)