TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A little bash script to install the latest Git (2.41.0)

2 pointsby graderjsalmost 2 years ago
Since 2.34 you can use SSH keys to do commit signing, but my Debian 11 only comes with 2.30.<p>This little script is tested on Debian 11, modify as needed:<p><pre><code> #!&#x2F;usr&#x2F;bin&#x2F;env bash which autoconf || sudo apt install -y autoconf which make || sudo apt install -y build-essential sudo apt install -y libcurl4-openssl-dev libz-dev libssl-dev libexpat-dev gettext asciidoc TMPD1=$(mktemp -d) cd $TMPD1 wget -O git.tar.gz https:&#x2F;&#x2F;github.com&#x2F;git&#x2F;git&#x2F;archive&#x2F;refs&#x2F;tags&#x2F;v2.41.0.tar.gz gunzip git.tar.gz tar -xf git.tar rm git.tar cd git* pwd echo $TMPD1 make configure .&#x2F;configure --prefix=&#x2F;usr make all doc sudo make install install-doc cd $HOME rm -rf $TMPD1 echo Git 2.41.0 installed! git --version</code></pre>

no comments

no comments