git is a wonderful SCM, so is extremely important know about its right use. Spent some time reading the articles below contributes to a good code repository.
Start with github code school where you'll learn the basics commands for using git. If you want to understand in detail what each commands does read the official documentation