Introduction
Git is an open-source version control system that allows developers to manage and track changes to their codebase. It provides a simple and efficient way to collaborate with others on a project and track changes over time.
In this article, we will explain how to set up Git on openSUSE 15.2.
Install Git
- Update the package index.
$ sudo zypper update
- Install Git by running the following command.
$ sudo zypper install git
- Verify the git installation.
$ git --version
Output
git version 2.26.2
Configuring Git
Once Git is installed, you must configure it with the Git config command.
- Specify your GitHub username and replace "your_name" with your name and "email@address.com" with your email address.
$ git config --global user.name "your_name"
$ git config --global user.email "email@address.com"
- Verify configuration changes with the following command.
$ git config --list
Output
user.name=johnsmith
user.email=johnsmith@example.com