This is a clear and simple step-by-step tutorial showing how to set up a git repository locally and on a remote server. You will need this for sharing your work with other people and/or machines.
This tutorial explains how to extract a subdirectory of a git repository and how to make it a submodule or an independent git repository in 8 easy steps.