How To Install Git on Raspberry Pi

git

Installing Git with Apt

sudo apt update
sudo apt install git
git --version
git version 2.20.1

Installing Git from the Source

sudo apt update
sudo apt install make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext
cd /usr/src/
sudo wget https://github.com/git/git/archive/v2.24.1.tar.gz -O git.tar.gz
sudo tar -xf git.tar.gzcd git-*
sudo make prefix=/usr/local allsudo make prefix=/usr/local install
git --versiongit version 2.24.1

Configuring Git

git config --global user.name "Your Name"git config --global user.email "youremail@yourdomain.com"
git config --listuser.name=Your Name
user.email=youremail@yourdomain.com
[user]
name = Your Name
email = youremail@yourdomain.com

Conclusion

--

--

Chief Executive Officer at WebSoft America Inc., Software Engineer, Books Author | https://websoft.ltd | https://www.itdevsols.com | https://www.imarslan.net

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arslan ud Din Shafiq

Arslan ud Din Shafiq

Chief Executive Officer at WebSoft America Inc., Software Engineer, Books Author | https://websoft.ltd | https://www.itdevsols.com | https://www.imarslan.net