• Imagine a teammate changes your script and it stops working.
    To fix it, you need to know what changed, so you keep a copy of the file for each version.

    Git is a version control tool. It saves each version of your files in a history:

    Without Git, a folder holds deploy.py, deploy_v2.py, deploy_final.py and deploy_final_ok.py. With Git, one file deploy.py has a history of three commits: Initial commit, Add VLAN 20 and Add VLAN 30

    Figure 1 - One Copy for Each Version, or One File and Its History

    Each point of this history is a commit: a version of your files, with who saved it and when.

    Your team keeps its files and their history in a repository on a Git server.
    To work on these files, you copy the repository to your server with git clone:

    The Git server holds the repository of the team with its three commits, and git clone copies it with all its history to your server automation

    Figure 2 - git clone Copies the Repository of the Team

    In the lab, you need to:

    1. Get the repository with git clone http://10.0.0.10/netauto.git.

    2. Go into it with cd netauto.

    3. Read its history with git log --oneline.

    Answer the question below

    How many commits does the history have?