Android

Installation of Git on Android using Termux.

Using Termux

1

Step 1: Downlod Termux

Warning:

⚠️ For security reasons, only install Termux from the official Google Play Store. Avoid third-party sources.

2

Step 2 Open Termux

Run the following command to install Git:

pkg upgrade
pkg install git

3

Step 3: Verify the Installation

After installation, you can verify the installation by running:

git --version

Or

git -v

If Git is installed, it should show something like git version X.Y.

Using APT

  • If you are using a Linux distribution on Android, you can use the following command to install Git:
apt install git