Using Git

1.0 Introduction

Git commands for common source code management use cases are listed.

2.0 Install Git

On a Ubuntu Linux system, Git can be installed with the command,

$ sudo apt-get install git

3.0 Set Identity

Before using Git, the user's identity (name, email) has to be set

$ git config --global user.email "user1@example.com"
$ git config --global user.name "Joe Bloggs"

4.0 Initialize git repository

The first job for putting a project under source code management is to create a repository.… Read more