Lab 1: Setup Git on your Machine

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Download and Install Git

The first step is to download and install Git on your machine.

Setup Name and Email

Run the following commands so that git knows your name and email. You can ignore this step if you already set it up.

Setup Line Ending Preferences

For Unix/Mac users:

For Windows:

All posts in this series:
Lab 1: Setup Git on your Machine
Lab 2: Create a Git Repository from Scratch
Lab 3: Check the Status of the Repository
Lab 4: Making Changes to files in the Working Directory
Lab 5: Staging Changes in Git
Lab 6: Git Staging and Commiting

Other related posts:
Git Delete a Local or Remote Branch
How to Clone a Git Repository into a Specific Folder?
Change the URI for a Remote Git Repository
How to Merge a Local Git Branch with Master
How to Setup Aliases and Shortcuts for Git Commands
How to create a .gitignore file in Windows

This content has been helpful to you?

Thanks for contributing!

Yes No