_>

mealno.in | DevOps Guide

Module 1

Core Concepts

Before typing any commands, you must understand the mental model. It is critical to grasp the relationship between your local computer and the cloud server.

๐Ÿ’ป Local: Git

Git is a program installed on your computer. Think of it as an advanced Save Game system for code. Every time you finish a feature, you create a permanent "save point" (called a commit) that you can safely return to if things break.

Fact: Git is "distributed". Your local folder contains the entire history of the project, not just the latest files.

โ˜๏ธ Cloud: Gitea

Gitea (gitea.mealno.in) is our private code website. It is the Cloud Backup for all your Git save points. Pushing code here allows teamwork and automatically tells Coolify to update the live website.

Fact: Gitea provides PRs (Pull Requests), User Management, and Webhooks. Git itself does not.

โšก The 3 Stages of Saving

๐Ÿ“ฆ

1. The Box

git add .

Gather all the files you changed and put them into a box.

โฌ‡๏ธ
๐Ÿท๏ธ

2. The Label

git commit -m

Tape the box shut permanently and stick a descriptive label on it.

โฌ‡๏ธ
๐Ÿšš

3. The Truck

git push

Send the labeled box to our Gitea server so the team can see it.