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
| Command | Use | Example |
|---|---|---|
| git clone | Download repository | git clone https://github.com/user/repo.git |
| git status | Check changes | git status |
| git add | Add files to commit | git add file.txt |
| git commit | Save changes | git commit -m "message" |
| git push | Upload to GitHub | git push origin main |
| git pull | Download updates | git pull |
| git init | Create new repo | git init |
| git log | Show commit history | git log |
| git branch | Show branches | git branch |
| git checkout | Switch branch | git checkout main |
| git config | Set username/email | git config --global user.name "YourName" |
| gcc | Compile C program | gcc file.c -o file |
| g++ | Compile C++ program | g++ file.cpp -o file |
| make | Build project | make |
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.gitCheck project status:
git statusAdd and commit changes:
git add .
git commit -m "update"Pull latest changes:
git pull