Blog

12/08/2019

How To Install and Configure Git on Fedora 23



Git is an open-source version control system used for source code management.

Pre-Flight Check

  • These instructions are specifically intended for installing Git on Fedora 23.
  • For this tutorial, we’ll be logged in as root using a Liquid Web Self Managed Fedora 23 server.
  • If you’re using CentOS 7, you will want to use this tutorial to install git. For Ubuntu 15.04, use this tutorial.

Installation

As always, you’ll first want to ensure that the existing packages are up to date before proceeding with the installation:

dnf -y update

Then, you can install git with this command:

dnf -y install git

Once complete, git will be installed and ready to use!

As of the writing of this tutorial, the current version of Git available in the Liquid Web dnf repositories is version 2.5.0. You can check the version of git that was installed by running the following command:

git --version

Configuration

To prevent any commit errors, it’s a good idea to set up your user for git (use the –global option to specify global configuration settings).

git config --global user.name "sampleuser"
git config --global user.email "sampleuser@example.com"

You can verify the configuration changes by viewing the .gitconfig:

git config --list

That should produce output similar to the following:

[root@host ~]# git config --list
user.name=sampleuser
user.email=sampleuser@example.com

 

14/08/2019

How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...
14/08/2019

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....
12/08/2019

How to Start and Enable Firewalld on CentOS 7

In this article, we discuss how to start and enable firewalld. It is highly recommended that you have a firewall protecting your server.Pre-Flight CheckThese...