How do I install Git on CentOS

0 votes
How do I install Git on CentOS?
Feb 19, 2019 in Git & GitHub by Kiran
137 views

2 answers to this question.

0 votes

Hey @Kiran, installing Git on CentOS is literally just two steps

sudo yum install git

and then check the version installed

git --version
answered Feb 19, 2019 by Jobin
0 votes

Hi,

If you want to install Git 1 then you have to install the epel-release repo.

$ yum install epel-release

If you want to install Git 2, then you have to install endpoint rpm. 

$ rpm -ivh endpoint-repo.1.7.rpm

After that you can install Git.

$ yun install git

Hope this will work.

Thank You

answered Feb 4, 2020 by MD
• 95,180 points

Related Questions In Git & GitHub

0 votes
1 answer

How do I solve a Git checkout error: updating paths is incompatible with switching branches?

This error occurs when you are checking ...READ MORE

answered Jul 26, 2018 in Git & GitHub by Sophie may
• 10,550 points
3,736 views
+1 vote
1 answer

How do I rename a local Git branch?

Hi@akhtar, You can rename your branch name. Sometimes ...READ MORE

answered Sep 4, 2020 in Git & GitHub by MD
• 95,180 points
109 views
0 votes
1 answer

How do I update the password for Git?

Hi@akhtar, You need to update your credentials. For ...READ MORE

answered Jan 5 in Git & GitHub by MD
• 95,180 points
100 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,078 views
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
303 views
0 votes
1 answer

How do I install Git on windows?

Hey @Akash, follow these steps: Go to this ...READ MORE

answered Feb 19, 2019 in Git & GitHub by Nikhil
194 views
0 votes
1 answer

How to install git on ubuntu?

Hey @Ali, installing Git on ubuntu is ...READ MORE

answered Dec 20, 2018 in Git & GitHub by Eric
254 views