To verify that you entered the correct information you can use the command below: git config -list Git config -global user.email List configuration settings mo GET YOUR VPS git config -global user.name "Your Name" You can do that by using the following commands: The first thing that you might want to do after the installation is to configure your name and email address in Git so the changes you commit contain the correct information. The command above will also show the version of Git installed on your CentOS 7 VPS. To verify that Git is successfully installed you can use the following command: git -version Once you log in you can use the following command to install Git: yum install git 3. If you don’t know how to do this, you can follow our guide on how to connect to a Linux server via SSH. To install Git on your CentOS 7 VPS you need to have SSH access to the server. You can download a tarball and build from source, or use a 3rd-party repository such as the IUS Community Project to obtain a more recent version of git. RHEL and derivatives typically ship older versions of git. Gentoo # emerge -ask -verbose dev-vcs/git Arch Linux # pacman -S git openSUSE # zypper install git Mageia # urpmi git Nix/NixOS # nix-env -i git FreeBSD # pkg install git Solaris 9/10/11 ( OpenCSW) # pkgutil -i git Solaris 11 Express # pkg install developer/versioning/git OpenBSD # pkg_add git Alpine $ apk add git Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al. If you prefer to build fromįor the latest stable version for your release of Debian/Ubuntu # apt-get install gitįor Ubuntu, this PPA provides the latest stable upstream Git version # add-apt-repository ppa:git-core/ppa # apt update apt install git Fedora # yum install git (up to Fedora 21) It is easiest to install Git on Linux using the preferred package
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |