In this chapter, we learn how to create and manage a coding project directly from a mobile phone using Termux.
No computer required.
Your phone can create files, organize projects, and prepare code for GitHub.
Create a new project directory:
mkdir my-projectEnter your project folder:
cd my-projectTurn your folder into a Git repository:
git initGit will now track changes inside your project.
Create a README file:
nano README.mdAdd your project description.
Save:
CTRL + O
ENTER
CTRL + X
Example: create a website file.
nano index.htmlAdd your HTML code and save.
Create your stylesheet:
nano style.cssAdd your CSS code and save.
Create a JavaScript file:
nano script.jsAdd your JavaScript code and save.
See all files inside your project:
lsFor a detailed view:
ls -laSee files Git is tracking:
git statusAdd all project files:
git add .Create your first commit:
git commit -m "Created mobile project"Check your project history:
git logmy-project
│
├── README.md
├── index.html
├── style.css
└── script.js
Code First.
Security Always.
Impact Forever.
⚡ Divinity Mobile Git Guide