I found that the git version on centos7 is about 1.8.. it does't supprort "git -C",
Is there a version to support that? thanks!
git version on centos7
-
- Posts: 215
- Joined: 2016/03/16 02:34:19
Re: git version on centos7
The IUS repository provides access to newer mainline got versions. You can also use the SCL repo (yum install centos-release-scl) and install the variant of git you want through that. Currently available;
1.9 (git19: sclo)
2.5 (sclo-git25)
2.9 (rh-git29)
2.12 (sclo-git212)
2.18 (rh-git218)
To use the SCL git, either use ‘scl enable’ or source the enable file in the /opt/{rh,sclo}/<git-version> directory. The IUS git conflicts with the main repo git and its related git-perl packages, so you’ll have to remove them first and make sure they never get installed.
Cheers,
Mike
1.9 (git19: sclo)
2.5 (sclo-git25)
2.9 (rh-git29)
2.12 (sclo-git212)
2.18 (rh-git218)
To use the SCL git, either use ‘scl enable’ or source the enable file in the /opt/{rh,sclo}/<git-version> directory. The IUS git conflicts with the main repo git and its related git-perl packages, so you’ll have to remove them first and make sure they never get installed.
Cheers,
Mike
Solution Architect @RedHat | RHCE
Former SysAdmin @BlueSkyStudios and @Pixar
Feature animation and VFX enthusiast
--
Report CentOS Stream 8 bugs: https://da.gd/c8s-bugs
Report CentOS Stream 9 bugs: https://da.gd/c9s-bugs
Former SysAdmin @BlueSkyStudios and @Pixar
Feature animation and VFX enthusiast
--
Report CentOS Stream 8 bugs: https://da.gd/c8s-bugs
Report CentOS Stream 9 bugs: https://da.gd/c9s-bugs