Guides

SWISSVERSE GuideOctober 2026 · 6 min read

Building With AI, Part 1: GitHub and Your First Project

A beginner's guide to GitHub: repositories, commits, branches, privacy, common fears and the first small step toward building with AI.

Building with AI · Beginners · GitHub

You have an idea for a website, a game, a tool or an application. You want to build it with an AI assistant. Before long, someone tells you to put the project on GitHub. If you have never written software, that instruction can feel like the first obstacle. This guide starts there.

This is the first chapter of Building With AI, From Zero, a practical Swissverse series about going from an idea to projects you can keep improving. You do not need a programming background to follow the first exercise.

Why GitHub appears so early

Imagine a project as a folder containing everything needed to build your website: the page layouts, styles, instructions, images and the code that makes buttons work. As you develop it, dozens of files change. Sometimes an AI assistant edits several of them to complete what sounds like a simple request.

Eventually you need to know three things: Which files are the current version? What changed? Can I get back to the version that worked yesterday?

This is why GitHub is useful. It gives a project an organized home and a record of changes. It also makes it easier for other tools and authorized collaborators, including AI coding assistants, to work with that project.

There are two names to separate at the beginning: Git is the technology that records versions of files. GitHub is a service that hosts Git repositories and provides tools for viewing, discussing and reviewing changes. Git can work on your computer without GitHub. GitHub adds an accessible online home.

Five words you will keep seeing

  • Repository (repo): the project folder, including its history of changes.
  • Commit: a recorded snapshot of a set of changes. Think of saving a milestone with an explanation.
  • Branch: a separate line of changes where you can try an idea before combining it with the main project.
  • Pull request: a proposal to bring changes from one branch into another, with a place to review them.
  • Clone: downloading a working copy of a repository to your computer or another development environment.

You will also encounter push, which sends locally recorded changes to a remote repository, and pull, which retrieves changes from it. There is no need to memorize every command on day one. Learn to recognize what an assistant is asking to change and why.

Does GitHub publish your website?

GitHub stores project files. Some projects can be published directly through GitHub Pages, a static website hosting service. Other websites and applications need a deployment service, server, database or additional infrastructure.

Later in this series we will explore hosting options, including managed platforms and VPS hosting with Coolify. For now, the distinction is simple: your repository records what you are building. Hosting is how other people get to use it.

The fears are reasonable

Can everybody see my work?

Repositories can be public or private. Public repositories are intended to be viewable by anyone. Private repositories limit access to the people and integrations you authorize. Check that setting before uploading personal or commercial work.

Can somebody take over my project?

Viewing public code is different from receiving permission to modify the original repository. GitHub controls write access through account permissions. Keep your account secure, use two-factor authentication, and grant integrations only the access they need.

Can the AI destroy something that already works?

An AI assistant can make mistakes. It can edit the wrong file, introduce a bug or misunderstand a request. Commits and branches provide a way to compare changes and return to earlier source versions. They do not replace database backups, and a code rollback does not automatically undo changes to live data.

What about passwords and API keys?

Never commit passwords, secret API keys, database connection secrets or wallet seed phrases to a repository, including a private one. Private repositories can be shared accidentally or exposed through an integration. Use the secret-management features provided by your deployment tools. If a secret is exposed, revoke or rotate it.

Do I need to understand every line of code?

You can begin without that knowledge. You still need to understand what the application is meant to do, review what changed, test important actions and maintain access to your accounts and data. AI can help explain individual files and errors as you learn.

Your first exercise: make a repository in the browser

  1. Open GitHub and create an account, or sign in to an existing one. Enable two-factor authentication.
  2. Open New repository.
  3. Give it a simple name such as my-first-ai-project.
  4. Choose Private while learning, unless you deliberately want to share the project publicly.
  5. Choose the option to add a README file, then create the repository.
  6. Open the README.md file, select Edit and write a short description of what you want to build.
  7. Commit that change with a clear message such as Describe project idea.

That is enough for the first exercise. You now have a repository and a change recorded in its history. You have not bought hosting, deployed an application or given an AI assistant permission to change anything.

What goes in the README?

A README is the introduction to a repository. For a small first project, it can be plain language:

# My First AI Project

I want to build a simple website where visitors can explore
a collection of places, read a short description and open
a link to visit each one.

The first version should work well on a phone.

I want to keep the project simple enough to understand
and improve with an AI assistant.

You can expand it later with instructions for running the project, links to documentation, decisions already made and things that are still unfinished. Clear written context helps an assistant interpret your requests.

How GitHub fits into building with AI

A practical workflow might look like this:

  1. You describe a feature in everyday language.
  2. An AI coding assistant reads the relevant project files and documentation through the access you authorize.
  3. It proposes or creates edits.
  4. You inspect the changes and test the result.
  5. You commit a working version, and your deployment process may publish it.

The order varies by tool. Some tools work in the browser. Others work locally or in a cloud environment. Some create pull requests for review. Others can change files directly if you grant that permission. The principle is the same: keep an identifiable project, understand the requested change and preserve a history that helps you recover.

You do not need to set up everything today

New builders often encounter an enormous list of unfamiliar things at once: editors, terminals, AI subscriptions, hosting, domains, Git branches, API tokens, databases, documentation and MCP servers. It can feel as though every tool requires three more tools.

That is why this series starts with one manageable step. Your first goal is to create a project home and understand how changes are recorded. You can choose an AI assistant afterwards, connect it to the repository with appropriate permissions, and learn the next part while building something real.

What comes next

In Chapter 2, we will look at the available kinds of AI building tools: chat assistants, coding agents, integrated editors and visual builders. We will examine where each works, how it connects to your files, and what to consider before giving it access.

Later chapters will cover official project documentation, reusable skills, MCP connections, hosting, databases and real projects. Where possible, we will show both what worked and what confused us along the way.

Further reading