How To Install git-extras on CentOS 7
Introduction
In this tutorial we learn how to install git-extras
on CentOS 7.
What is git-extras
git-extras adds the following extra-commands to git alias, archive-file, bug, changelog, commits-since, contrib, count, create-branch, delete-branch, delete-submodule, delete-tag, effort, extras, feature, fresh-branch, gh-pages, graft, ignore, info, local-commits, obliterate, promote, refactor, release, repl, setup, squash, summary, touch, undo For more information about the extra-commands, see the included README.md, HTML, mark-down or man-pages.
We can use yum
or dnf
to install git-extras
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install git-extras.
Install git-extras on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install git-extras
using yum
by running the following command:
Install git-extras on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install git-extras
using dnf
by running the following command:
How To Uninstall git-extras on CentOS 7
To uninstall only the git-extras
package we can use the following command:
References
Summary
In this tutorial we learn how to install git-extras
on CentOS 7 using yum
and dnf
.