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
↩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.
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.
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:
- ✓I have a GitHub account and my first repository.
- ✓I understand repository,
mainand the difference between local (Codespace) and remote (GitHub). - ✓I can commit (record a version), push (send it) and pull (incorporate remote changes).
- ✓I prepared the context: the
context/folder with both documents. - ✓I reviewed a change to the existing code, with context and specific tests, and made a commit + push.
- ✓I deployed manually by copying the code to Apps Script and checking /exec.
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.
- What is the difference between local and remote?
- What do commit, push and pull do?
- 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.