Starting with Git

Configuring Git

A couple of very basic configurations should be made before you get started. You should set your name and email address as well as enable coloring to pretty up command outputs:

$ git config --global user.name "John Doe"
$ git config --global user.email "john@doe.org"
$ git config --global color.ui auto

Git will now download a complete copy of this repository to your local disk – on condition that you’re allowed to access this repository.

Local/Remote repositories

https://www.git-tower.com/learn/git/ebook/en/command-line/basics/basic-workflow#start

Starting with an Unversioned Project

Let’s start with an existing project that is not yet under version control. Change into the project’s root folder on the command line and use the “git init” command to start versioning this project:

$ cd path/to/project/folder
$ git init

Making Your First Commit


$ git add -A $ git commit -m “Initial commit”

Starting with an Existing Project on a Server

cd your/development/folder/
$ git clone https://github.com/gittower/git-crash-course.git