• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install Git on Debian 11.3

  • 00:38 lsb_release –a
  • 00:51 su
  • 01:04 apt-get update
  • 01:25 apt install git
  • 01:51 git --version
  • 02:07 git config --global user.name "linuxhelp"
  • 02:35 git config --global user.email user@linuxhelp.org
  • 03:21 nano ~/.gitconfig
  • 03:43 git config --list
7191

To Install Git On Debian 11.3

Introduction:

Git is a free and open-source software for tracking changes and can also be used to store content. It is a prominent version control system that handles numerous codes by maintaining the history and also possesses a remote repository. The main objective is to provide speed and integrity to the data.

Installation procedure:

Step 1: Check the OS version by using the below command

root@linuxhelp:~$ lsb_release –a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye

Step 2: Switch to root user by using the below command

root@linuxhelp:~$ su
[sudo] password for linuxhelp: 

Step 3: Install the Git by using the below command

root@linuxhelp:~# apt install git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs
  git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl

0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,386 kB of archives.
After this operation, 37.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bullseye/main amd64 liberror-perl all 0.17029-1 [31.0 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 git-man all 1:2.30.2-1 [1,827 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 git amd64 1:2.30.2-1 [5,527 kB]
Fetched 7,386 kB in 1s (4,938 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 155850 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17029-1_all.deb ...
Unpacking liberror-perl (0.17029-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.30.2-1_all.deb ...
Unpacking git-man (1:2.30.2-1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.30.2-1_amd64.deb ...
Unpacking git (1:2.30.2-1) ...
Setting up liberror-perl (0.17029-1) ...
Setting up git-man (1:2.30.2-1) ...
Setting up git (1:2.30.2-1) ...
Processing triggers for man-db (2.9.4-2) ...

Step 4: Check the downloaded Git version by using the below command

root@linuxhelp:~# git --version
git version 2.30.2

Step 5: Create the user name by using the below command

root@linuxhelp:~# git config --global user.name "linuxhelp"

Step 6: Create the Email ID by using the below command

root@linuxhelp:~# git config --global user.email user@linuxhelp.org

Step 7: View the created user name and email as shown in the image below

root@linuxhelp:~# nano ~/.gitconfig

snap 1

Step 8: List the configuration by using the below command

root@linuxhelp:~# git config --list
user.name=linuxhelp
user.email=user@linuxhelp.org

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to install Git on Debian 11.3. Your feedback is much welcome.

Tags:
connor
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is Git and why is it used?

A

Git is a DevOps tool used for source code management. It is a free and open-source version control system used to handle small to very large projects efficiently. Git is used to track changes in the source code, enabling multiple developers to work together on non-linear development.

Q

What is the difference between GitHub and Git?

A

Git is a version control system that lets you manage and keep track of your source code history. GitHub is a cloud-based hosting service that lets you manage Git repositories.

Q

Is Git a programming language?

A

Git is not a programming language, but it's become incredibly important for computer programmers working in almost any language you can name. Today, Git is the de facto standard for what's known as version control software.

Q

What port is Git?

A

The native Git transport uses TCP port 9418. However, Git can also run over SSH (often used for pushing), HTTP, HTTPS, and less often others

Q

Git using SSH or HTTPS?

A

Git used SSH protocol to securely transfer repository data over the internet. Uses public key encryption to secure data. Git with HTTPS uses public-key encryption-based authentication for doing every action like git push, git clone, git fetch and git pull, etc.

Related Tutorials in How to install Git on Debian 11.3

Related Tutorials in How to install Git on Debian 11.3

How to install Gparted on Debian 9.0
How to install Gparted on Debian 9.0
Sep 13, 2017
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
Oct 17, 2022
How to install and update OpenSSL on Debian 11.3
How to install and update OpenSSL on Debian 11.3
Oct 21, 2022
How to install qBittorrent on Debian 9.0
How to install qBittorrent on Debian 9.0
Sep 8, 2017
How to Install FileZilla in Debian
How to Install FileZilla in Debian
Nov 29, 2016
How to install Nmap on Debian 9.0
How to install Nmap on Debian 9.0
Sep 9, 2017
How to Install Laravel in Debian
How to Install Laravel in Debian
Dec 7, 2016

Related Forums in How to install Git on Debian 11.3

Related Forums in How to install Git on Debian 11.3

Git
vertonskjelvic class=
error: failed to push some refs to in gitlab
Nov 24, 2017
OpenSUSE
victorsamuel class=
exec: "git": executable file not found in $PATH
Nov 16, 2017
MariaDB
ryan class=
E: Unable to locate package mariadb-server
Sep 18, 2017
Linux
AadrikaAnshu class=
How to add timestamps to history On Any Linux Machine
Jun 18, 2019
vim
jacob class=
Change true vi-compatible editor from Debian Vim-compatible
Nov 8, 2021
Git
charmi class=
Gitlab project exported path
Jan 2, 2018
Ubuntu
Robattalion class=
Ubuntu 20.04 Installation Stuck
Sep 19, 2020
debian
anandaamatya class=
RedNotebook on Debian buster
Jun 30, 2020

Related News in How to install Git on Debian 11.3

Related News in How to install Git on Debian 11.3

Debian IceDove kicks the bucket after Thunderbird revisits Debian Repositories
Debian IceDove kicks the bucket after Thunderbird revisits Debian Repositories
Feb 28, 2017
Mass update of Jessie - A better alternative to new version?
Mass update of Jessie - A better alternative to new version?
May 8, 2017
Debian 9.2 ‘Stretch’ OS is here, download distro now
Debian 9.2 ‘Stretch’ OS is here, download distro now
Oct 9, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luke ?
workbench for debian

I am using workbench in CentOS whereas now I need to use Debian Operating system so could you please help to install and use in Debian?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.