To manage my network configuration files in a better way, I’m trying out to handle those in a git repository.
A git repository is also useful for Python or other scripts I’m using for network automation.
The reason to use git is because versioning of configuration files and writing Python scripts is becoming more and more relevant for network engineers and those technologies also part of the Cisco’s DevNet Associate Exam.
As git software, I’m using GitLab and following their installation instructions for GitLab Official Linux package Debian.
The manual and installation instructions are straight-forward and the setup can be easily accomplished with some basic Linux knowledge.
Git for Windows
For a Microsoft Windows 10 laptop, I’m installing the package provided at Git for Windows, which brings the required tools like git bash, shell integration and a git GUI to a windows system.
Generating SSH Keys
For generating SSH keys, I’m using the puTTY package. I’m creating the SSH keys for the GitLab server with the command ssh-keygen as shown below.
Adding SSH keys to GitLab account
After the generation I’m adding my public SSH key to my account on the Gitlab server like shown in the screenshot (Account > Settings > SSH Keys).
Setup GitLab in Atom
A git repository then can be easily accessed in Atom by using GitLab’s Clone with SSH function.