User Tools

Site Tools


git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
git [2025/04/02 22:30] – Add git config pack.threads limit dblumegit [2025/07/08 16:13] (current) – [Building Git] dblume
Line 1: Line 1:
 ====== git ====== ====== git ======
 +
 +===== Building Git =====
 +
 +In Ubuntu, get some dev libs first:
 +
 +<code bash>
 +sudo apt-get install libssl-dev libcurl4-gnutls-dev gettext
 +</code>
 +There was [[https://lore.kernel.org/git/xmqq5xg2wrd1.fsf@gitster.g/|a security fix in 2.50.1]], so here we get that one:
 +<code bash>
 +git clone --filter=blob:none -b v2.50.1 --single-branch --no-tags https://github.com/git/git
 +# or: git clone --branch v2.50.1 --depth 1 https://github.com/git/git
 +# or even: wget https://www.kernel.org/pub/software/scm/git/git-2.50.1.tar.xz
 +
 +make prefix=$HOME/.local -j$(nproc)
 +make prefix=$HOME/.local install
 +</code>
 +
 +This will put git in ''$HOME/.local/bin/''
 +
 +===== Using Git =====
  
 Make the clone of the remote repository. Make the clone of the remote repository.
git.1743658241.txt.gz · Last modified: 2025/04/02 22:30 by dblume