All     Ethical Hacking     Networking     Programming     OSINT

Git in Termux – Installation & Basic Commands

Git is a powerful version control system used by developers to manage projects, track changes, and work with GitHub. Termux allows you to install Git easily so you can clone repositories, push updates, and manage code directly on your Android phone. Below are the installation steps and the basic commands you need.

Installation

Update Termux packages:

pkg update && pkg upgrade -y

Install Git:

pkg install git -y

Check Git version:

git --version

Configure your name:

git config --global user.name "Your Name"

Configure your email:

git config --global user.email "you@example.com"

Basic Commands

Clone a repository:

git clone https://github.com/user/repo.git

Check current status:

git status

Add files to commit:

git add .

Commit changes:

git commit -m "Your message"

Push changes:

git push

Pull latest updates:

git pull

View commit history:

git log

Uninstall Git:

pkg uninstall git