Skip to content

Latest commit

 

History

History
172 lines (106 loc) · 1.71 KB

File metadata and controls

172 lines (106 loc) · 1.71 KB

📱 03 - Creating a Project from Mobile

Introduction

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 Project Folder

Create a new project directory:

mkdir my-project

Enter your project folder:

cd my-project

Initialize Git

Turn your folder into a Git repository:

git init

Git will now track changes inside your project.


Create Project Files

Create a README file:

nano README.md

Add your project description.

Save:

CTRL + O
ENTER
CTRL + X

Create HTML Files

Example: create a website file.

nano index.html

Add your HTML code and save.


Create CSS Files

Create your stylesheet:

nano style.css

Add your CSS code and save.


Create JavaScript Files

Create a JavaScript file:

nano script.js

Add your JavaScript code and save.


View Project Files

See all files inside your project:

ls

For a detailed view:

ls -la

Check Project Status

See files Git is tracking:

git status

Add Files to Git

Add all project files:

git add .

Save Your Changes

Create your first commit:

git commit -m "Created mobile project"

View Commit History

Check your project history:

git log

Project Structure Example

my-project
│
├── README.md
├── index.html
├── style.css
└── script.js

Mission

Code First.
Security Always.
Impact Forever.

⚡ Divinity Mobile Git Guide