How do I install Git on CentOS?

0 votes
How do I install Git on CentOS?
Feb 19, 2019 in Git & GitHub by Kiran
68 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 by MD
• 23,860 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
• 9,940 points
1,615 views
0 votes
1 answer

How to do a re-merge into another branch in git

Seems like you want to rebase your ...READ MORE

answered May 7, 2018 in Git & GitHub by DareDev
• 6,850 points
427 views
0 votes
1 answer
+13 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,420 points
496 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
143 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
102 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
153 views