Termux Git & Development Commands

Git and development commands in Termux allow you to manage source code, connect with GitHub, and build projects directly from your Android device. These commands are essential for developers, students, and anyone learning programming.

Git & Development Commands List

CommandUseExample
git cloneDownload repositorygit clone https://github.com/user/repo.git
git statusCheck changesgit status
git addAdd files to commitgit add file.txt
git commitSave changesgit commit -m "message"
git pushUpload to GitHubgit push origin main
git pullDownload updatesgit pull
git initCreate new repogit init
git logShow commit historygit log
git branchShow branchesgit branch
git checkoutSwitch branchgit checkout main
git configSet username/emailgit config --global user.name "YourName"
gccCompile C programgcc file.c -o file
g++Compile C++ programg++ file.cpp -o file
makeBuild projectmake

These commands help you manage code and work with GitHub projects easily in Termux. They are essential for developers and learners.

Quick Examples

Clone a GitHub repository:

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

Check project status:

git status

Add and commit changes:

git add .
git commit -m "update"

Pull latest changes:

git pull
SHARE THIS POST: