$ sudo yum remove git $ sudo yum install gcc curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker $ wget https://www.kernel.org/pub/software/scm/git/git-2.2.0.tar.gz $ tar -zxf git-2.2.0.tar.gz $ cd git-2.2.0 $ make prefix=/usr/local all $ make prefix=/usr/local install $ git --version git version 2.2.0 これでどうだ! // @clown0082 さん、GCC に関する編集リクエスト有難う御座いました m(_ _)m 途中の
![CentOS 6.5, yum でインストールした Git を 1.7.1 から 2.x にバージョンアップする (※Git2.33.1 まで対応、コメント参照) - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/76d04c9229378276a86f95d699696fa3eadeb670/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-412672c5f0600ab9a64263b751f1bc81.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk3MiZoPTM3OCZ0eHQ9Q2VudE9TJTIwNi41JTJDJTIweXVtJTIwJUUzJTgxJUE3JUUzJTgyJUE0JUUzJTgzJUIzJUUzJTgyJUI5JUUzJTgzJTg4JUUzJTgzJUJDJUUzJTgzJUFCJUUzJTgxJTk3JUUzJTgxJTlGJTIwR2l0JTIwJUUzJTgyJTkyJTIwMS43LjElMjAlRTMlODElOEIlRTMlODIlODklMjAyLnglMjAlRTMlODElQUIlRTMlODMlOTAlRTMlODMlQkMlRTMlODIlQjglRTMlODMlQTclRTMlODMlQjMlRTMlODIlQTIlRTMlODMlODMlRTMlODMlOTclRTMlODElOTklRTMlODIlOEIlMjAlMjglRTIlODAlQkJHaXQyLjMzLjElMjAlRTMlODElQkUlRTMlODElQTclRTUlQUYlQkUlRTIlODAlQTYmdHh0LWFsaWduPWxlZnQlMkN0b3AmdHh0LWNvbG9yP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