Skip to content
GuidesGit Basics

Git Basics

Git is an essential tool for managing and collaborating on code projects. This guide will help you set up Git and use it effectively with The A Team resources.


Step 1: Install Git

  1. Visit the Git website and download the latest version for your operating system.
  2. Follow the installation wizard to complete the setup.

Step 2: Configure Git

Run the following commands in your terminal to set up Git:

  1. Set your name (used in commits):
    git config --global user.name "Your Name"
  2. Set your email (linked to your commits):
    git config --global user.email "[email protected]"

Optional - Use GitHub Desktop Instead

If you prefer a graphical interface, GitHub Desktop is a fantastic tool for managing repositories.

  1. Download GitHub Desktop from desktop.github.com.
  2. Sign in with your GitHub account.
  3. Clone repositories, commit changes, and sync with your remote repository using an intuitive interface.

Step 3: Clone a Repository

To start working with one of The A Team’s repositories:

  1. Copy the repository URL from the store or GitHub.
  2. Run the following command in your terminal:
    git clone <repository-url>

This creates a local copy of the repository on your machine.


Step 4: Basic Git Commands

Here are essential Git commands you’ll use frequently:

  • Check the repository status:
    git status
  • Stage changes for a commit:
    git add .
  • Commit changes with a message:
    git commit -m "Your commit message"
  • Push changes to the remote repository:
    git push origin main

Helpful Resources

For more in-depth learning:


Now you’re ready to use Git effectively for managing The A Team resources!