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 -yInstall Git:
pkg install git -yCheck Git version:
git --versionConfigure 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.gitCheck current status:
git statusAdd files to commit:
git add .Commit changes:
git commit -m "Your message"Push changes:
git pushPull latest updates:
git pullView commit history:
git logUninstall Git:
pkg uninstall git