Skip to content

Instantly share code, notes, and snippets.

View beattidp's full-sized avatar

Douglas Beattie, Jr. beattidp

View GitHub Profile
@beattidp
beattidp / build-git.md
Last active October 17, 2023 18:04 — forked from egorsmkv/build-git.md
Build git from source code on CentOS 7

Build git from source code, without GUI and with Python support (e.g. git-p4)

1) Get the latest version of Git from GitHub.

Look at https://github.com/git/git/tags and toward the top pick a recent version. (e.g. at the time of this edit, v2.31.1)

method A: download a compressed archive of the sources

GITVER=2.31.1
wget https://github.com/git/git/archive/refs/tags/v${GITVER}.tar.gz