Programming guide

Set up Git for a small project

Put a small project under Git version control, make clean commits, ignore files that should not be shared and back it up to a remote repository.

Estimated time: 30–45 minutesUpdated: 28 September 2026

Use this guide when you have a project folder with code and no version control yet, or you want to start a new project the right way. Have Git installed, your project folder ready and an account on a Git hosting service if you want an online backup.

Step by step

  1. Configure Git once

    Open a terminal and set your name and email with git config --global user.name and git config --global user.email. This labels your commits. You only need to do this once per computer.

Members

The rest of this guide is for members

This guide continues with 4 more sections. Unlock this guide and all 207 ABCDayZ guides with checklists, troubleshooting and next steps.

£3.99 for 1 month or £29 for 12 months. One payment, no automatic renewal.

Unlock all guides

Already a member on another device? Open your personal access link. Bought Programming with AI? Your first month is included.