Building Apps with AILesson 41 of 87

Module 5 · Save points, and shipping to a stranger

GitHub, and what a remote is for

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 5 of 11 in this chapter

This chapter’s goalKeep a project in git well enough to undo any hour (stage part of a change, restore one file, revert a pushed commit, recover from a bad reset, branch for an agent’s work and merge it back) and put the app on a free host with a real domain, environment variables scoped per environment, and a version stamp that says which commit is live.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

A remote is just another copy

Git on your laptop is complete. A remote is a second copy of the same history somewhere else, and origin is the conventional name for the main one. Nothing about it is special; you could have a remote on a USB stick.

GitHub is the most used host, and GitLab, Codeberg and Bitbucket do the same job. All of them offer free private repositories, which is the default you want until you decide otherwise.

Bash
git remote -v                                     # what remotes exist
git remote add origin git@github.com:you/app.git  # attach one
git push -u origin main                           # send main, remember the pairing

The -u sets up tracking so that later git push and git pull know where to go without being told.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Building with AI exam.

Stuck on something?Ask Beatriz, your AI tutor

How to cite: Addaly (2026) ‘GitHub, and what a remote is for’, in Building Apps with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-apps-with-ai/github-and-the-remote (Accessed: 29 November 2026).