Now, add the new user to the wheel group to enable the account to use the sudo command: # usermod username -aG wheel ![]() You can start by creating a Git user with the useradd command as below, where the -m flag used to create the user’s home directory under /home and -s specifies the user’s default shell. Important: Make sure to replace username with the actual name for the Git user to be created and used on your system. In this section, we shall cover how to set up a Git account with correct user information such as name and email address to avoid any commit errors, and the git config command is used to do that. Suggested Read: 11 Best Git Clients and Git Repository Viewers for Linux Set Up Git Account in Linux # yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-develĪfter you have installed required software dependencies, go to the official Git release page and grab the latest version and compile it from source using following series of command: # wget -O Install Git from Sourceīefore you begin, first you need to install required software dependencies from the default repositories, along with the utilities that needed to build a binary from source: # yum groupinstall "Development Tools" If you looking to have a most recent version of Git, consider compiling from source using following instructions. Important: Installing Git from default repositories will give you older version. Next, install Git by typing the following command: # yum install gitĪfter git successfully installed, you can issue the following command to display the version of Git installed: # git -version We shall install Git from the system default repositories, and make sure that your system is up-to-date with the latest version of packages by running the YUM package manager update command below: # yum update In this how-to guide, we shall move through the necessary steps of installing Git on CentOS/RHEL 7/6 and Fedora 20-24 Linux distributions along with how to configure Git so that you can start participating right away. It also maintains multiple work-flows together with many others. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |