Course · Build apps with AI · Session 3

Organise your project:
GitHub and the context method

Take your working code to a GitHub repository. Learn to save versions, explain your project through two context documents and review an AI-assisted improvement. You will keep working in your browser, with Codespaces.

Format
Online, at your own pace
Estimated time
About 2.5 hours, over one or more sittings
Essential
Existing code, context, reviewed change and commit/push
Starting point
Your best app from Session 2
What you will learn today: what GitHub is (repository, main, local and remote, commit / push / pull) and a method: prepare context before asking for a change. Practise individually in your new repository on main; branches and pull requests come in Session 4, and automated deployment in Session 5.

↩From Session 2: you can improve and fix apps. Until now, you edited in Apps Script. From today, you will keep code in GitHub and can work with an AI agent in the editor. Deployment remains manual, by copying code to Apps Script.

This session is online. Work step by step using your GitHub account and Codespace. If you teach the course in a classroom, the teaching guide includes an optional in-person plan.
Step 0 · Which AI chat will you use?

Choose a tool you already have access to. An agent can read and edit files with the relevant permissions; with an external chat, you copy them yourself. The method is the same: context, proposal, review and tests. You do not need to buy a plan to follow the explanations.

Today’s path
Progress: 0/6

Record your checks in the change and test worksheet. You can also download it as Markdown.

Before you finish…

Today you organised your project and saved a change you can explain and check. Check these off:

Remember: the context you provide helps AI produce better results, whichever tool you use. Then review and test the change.
In Session 4: use branches and pull requests to review changes before merging, with AI assistance. Automated deployment with clasp and team collaboration come in Session 5.

Check your understanding

This is for you, not an exam or a grade. Think through your answers, then compare them below.

  1. What is the difference between local and remote?
  2. What do commit, push and pull do?
  3. Which two documents make up the context method, and what does each contain?
See the answers ▾

1. Local is the working copy in the Codespace, even though the machine is in the cloud. Remote is the repository on GitHub.com.

2. Commit records selected changes in local history. Push sends commits to GitHub. Pull incorporates remote changes and may require resolving conflicts.

3. que-ha-de-fer.md describes the product: what it does, users, data and screens. arquitectura.md describes technical rules: Apps Script, files, limits and conventions.