...

/

Automation Tools: Git

Automation Tools: Git

Let's take a look at the role of Git in network automation and try out some git commands.

Git

Git is natively installed on Linux hosts. However, it should be the first application installed on Windows hosts. This ensures all the future tools installed will integrate. Git commands can be run from the Windows terminal.

Git command reference

Some commonly used Git commands:

git init

This will create a new git repository. This is usually the first command that you will run when starting a new project.

git clone <repository url>

This will clone a repository into a newly-created directory.

git checkout <working branch>

Navigate and work in multiple branches in the same repository by checking out branches. This does not create another copy of the repository locally, it simply changes to a different branch, and Git tracks ...