PTENES
TRILHA 1

💻 Terminal & Git

Master the terminal, Git, and GitHub starting from absolute zero. You’ll leave here able to communicate with the machine using text, save each version of your work, and publish your first website on the internet.

4
Modules
24
Topics
~3h
Duration
Basic
Level
YOU from absolute zero TERMINAL $ ls cd mkdir GIT add commit push GITHUB repo + Pages 🚀 DEPLOY live website

Learning path map

Detailed Content

1.1 ~45 min

💻 The Terminal

The text window where you talk directly to the computer. No menus, no clicks: just you and the machine.

What it is:

A text window where you type commands and the computer responds. CMD and PowerShell are the ones on Windows; shell (Bash/Zsh) is on Mac and Linux; “console” is just another name for the same thing.

Why learn:

Almost every developer tool (Git, deploys, servers) is operated through text. Learning the terminal is like learning to speak the computer’s native language.

Key concepts:

You type a command, and it responds. The $ (or > on Windows) means "I'm waiting for you to type." All the names point to the same idea.

What it is:

The step of finding and opening the terminal on your system: Windows + R and “cmd” on Windows, Cmd + Space and “Terminal” on Mac, Ctrl + Alt + T on Linux.

Why learn:

If you don’t know how to open it, nothing happens. Each system has its own way, but the result is the same: a window waiting for your commands.

Key concepts:

On Windows, use PowerShell (modern). On Mac and Linux, Terminal is already installed. When you open it, you see the prompt with your username.

What it is:

The three navigation commands: pwd (where I am), ls (what’s here) and cd (go to another folder).

Why learn:

In the terminal, you can’t see the folders; you ask for them. These commands are your map: without them, you’ll get lost in any project.

Key concepts:

cd .. goes back one folder, cd ~ goes to the home directory. Press Tab to autocomplete names and avoid typos.

What it is:

The commands for working with files: mkdir create a folder, touch create a file, cp copy, mv moves/renames, rm deletes.

Why learn:

It’s the terminal’s "right-click > New Folder," only faster. You can set up an entire project structure in seconds.

Key concepts:

BE CAREFUL with rm: deletes permanently, with no trash and no Ctrl+Z. Check the path first. mkdir -p create nested folders all at once.

What it is:

Two ways to put content in a file: the nano edits right in the terminal; the code opens the file or folder in VS Code.

Why learn:

Creating an empty file is just the beginning; you need to write to it. Knowing both methods covers everything from quick edits to entire projects.

Key concepts:

In nano, ^O save and ^X exit (the ^ is the Ctrl key). code . opens the entire current folder in VS Code.

What it is:

A hands-on exercise: build the folder and file tree for a website (index.html, style.css, img folder, pages folder) using only the terminal.

Why learn:

Practice ties it all together. When you build a project without leaving the terminal, the commands become automatic and you gain confidence.

Key concepts:

Combine mkdir + touch + cd. Check the result with ls -R. This structure is the foundation of the Trail 1 project.

View Full
1.2 ~45 min

🌿 Essential Git

Git is an infinite Ctrl+Z for your code. Every saved version is kept forever, and you'll never lose work again.

What it is:

A system that saves snapshots (versions) of your project over time. You can view an old version or go back to it at any time.

Why learn:

It puts an end to the chaos of “project-final-2-NOW-IT-WORKS.zip.” You can experiment without fear because every good version is saved and nothing gets lost.

Key concepts:

Each saved version is a "commit" with a message. The history is a timeline. Git is the most widely used tool for this worldwide.

What it is:

The step of downloading and installing Git on your computer: the official installer on Windows, brew on Mac, package manager on Linux.

Why learn:

Git doesn't come ready to use on every system. Installing it once (and configuring your name and email) gets everything ready for the rest of the course.

Key concepts:

Check with git --version. Configure git config --global user.name e user.email just once.

What it is:

The workflow for saving your work: git init initializes Git in the folder, git add selects what to save and git commit saves the version with a message.

Why learn:

It’s the heart of Git. You’ll repeat add e commit dozens of times a day to save your progress.

Key concepts:

add = "gets it ready"; commit = "saves it for good". The commit message (-m) explains what changed. Make small, frequent commits.

What it is:

The inspection commands: status shows what changed just now, log shows the commit history and diff shows line by line what was changed.

Why learn:

Before saving, you need to see what changed. These commands are your eyes: they keep you from accidentally committing the wrong thing.

Key concepts:

Use git status all the time. git log --oneline give a clean summary. git diff shows the "before and after".

What it is:

Branches are parallel copies of the project. You create a branch to test something new without changing the main version, then merge it if it works.

Why learn:

Lets you experiment without fear: if the idea doesn’t work, discard the branch and the main version stays intact.

Key concepts:

git branch nome create, git checkout (or switch) swaps, git merge joins. main and the main branch.

What it is:

A text file called .gitignore that lists what Git should ignore: passwords, temporary files, large folders like node_modules.

Why learn:

Without it, you could upload passwords to the internet or clutter the history with junk. It’s the first security protection for every project.

Key concepts:

One line per pattern to ignore. *.log ignore all logs; .env protects secrets. Create the .gitignore before the first commit.

View Full
1.3 ~45 min

☁️ GitHub and Pages

GitHub is where your code lives in the cloud: backup, collaboration, and, with GitHub Pages, your site published for free.

What it is:

Signing up for GitHub, the world’s largest site for storing code. The free account covers everything you need in this course.

Why learn:

GitHub is the "portfolio" for people who code. Recruiters look at your profile, and it's where your site goes live through Pages.

Key concepts:

Choose a professional username (it becomes part of your site's address). Verify your email to unlock all features.

What it is:

A Personal Access Token (PAT) is a special password that GitHub generates for the terminal to use instead of your regular password.

Why learn:

GitHub no longer accepts your regular password in the terminal. Without the token, you can't send (push) your code to the cloud.

Key concepts:

Generate the token in GitHub settings and copy it immediately (it only appears once). Treat the token like a password: never share it.

What it is:

The bridge between your computer and GitHub: remote points to the repository in the cloud, push sends and pull downloads the changes.

Why learn:

It’s what turns local Git into an online, collaborative backup. Without push, your code never leaves your machine.

Key concepts:

git remote add origin connects once. git push starts, git pull goes down. origin is the nickname for the remote repository.

What it is:

GitHub Pages is a free service that turns a repository with HTML into a public website with its own address on the internet.

Why learn:

It’s the simplest free way to put a website online. In just a few clicks, anyone in the world can access your project.

Key concepts:

Enable it in the repository settings (Pages tab). The address is usuario.github.io/repo. Each push automatically updates the site.

What it is:

AI assistants that write and complete code for you inside the editor: GitHub Copilot and tools like Codex.

Why learn:

AI speeds up the work considerably: it suggests commands, explains errors, and writes entire snippets. If you know how to use it well, you can get more done faster.

Key concepts:

AI suggests; you decide and check. Clearly describe what you want (a clear prompt). Use it as support while making sure you understand what the code does.

What it is:

An exercise that brings it all together: create a repository on GitHub, connect it to the local project, and send (push) the code for the first time.

Why learn:

Doing the full cycle once takes away the fear. After that, deploying any project becomes a routine that takes just a few commands.

Key concepts:

Sequence: init → add → commit → remote add → push. Use the token (PAT) to authenticate.

View Full
1.4 ~45 min

🚀 Project: Landing Page

Time to put it all together: you build a landing page from scratch and put it online in minutes, with its own address.

What it is:

The first step of the project: create the local folder, connect Git, and create the corresponding repository on GitHub.

Why learn:

Every professional project starts with a well-organized repository. Starting right prevents rework later on.

Key concepts:

Combine what you've learned: mkdir + git init + GitHub repository + remote add. Have a .gitignore from the start.

What it is:

HTML is the language that defines the structure of a page: headings, paragraphs, images, and links, organized in "tags".

Why learn:

It’s the skeleton of every website on the internet. Without HTML, there’s no page. Knowing the basics is enough to create a real landing page.

Key concepts:

Tags come in pairs: <h1>...</h1>. The visible content goes inside the <body>. Start with the index.html.

What it is:

CSS is the language of style: colors, fonts, sizes, spacing, and positioning. It transforms raw HTML into a beautiful page.

Why learn:

A landing page needs to attract visitors. CSS is what separates a dull page from a professional, pleasant-looking one.

Key concepts:

CSS selects an element (selector) and applies rules. Put the styles in style.css and link it to the HTML with the <link>.

What it is:

The step of pushing your landing page to GitHub and enabling Pages, making the site accessible at a public address.

Why learn:

It’s the "live" moment: your work stops being a file on your computer and becomes a real website anyone can visit.

Key concepts:

Do push with the index.html in the root, enable Pages and wait a few minutes. Each new push updates the site automatically.

What it is:

Change the default address usuario.github.io through a custom domain you buy, such as seunome.com.

Why learn:

A custom domain looks professional and is easier to share. It's an optional extra, but it adds a lot of value to the project.

Key concepts:

Buy the domain from a registrar, point DNS to GitHub, and configure the "Custom domain" field in Pages. HTTPS is free.

What it is:

The exercise that wraps up the track: create, style, version, and publish your own landing page, from the first command to the live site.

Why learn:

Delivering a complete project proves you've mastered everything: the terminal, Git, GitHub, and Pages, working together.

Key concepts:

Bring the 4 modules together in a single workflow. At the end, you'll have a public link to share and the foundation ready for Track 2.

View Full
← Back to the beginning Next Track →