# GitHub for Beginners: Complete Guide to Register, 2FA, Search, Repos, Issues, Git, Fork, PRs & More

> This comprehensive beginner-friendly GitHub tutorial covers everything from account registration and enabling two-factor authentication (2FA) to advanced search syntax, creating repositories, using Issues, connecting local Git, Forking, Starring, Pull Requests, and Push workflows. Perfect for AI programming enthusiasts and developers who want to master open-source collaboration and code hosting on GitHub.

- Source: https://www.waytoagi.com/en/kb/learning-path/github-complete-tutorial
- Original (Feishu, Chinese): https://waytoagi.feishu.cn/wiki/FaiswBIzaiYkOHk0AEJctvHRnOb
- Updated: 2026-10-23

---

> 🔗 Original link: [https://x.com/laowangbabababa/statu...](https://x.com/laowangbabababa/status/2061384966227849698)

![](https://www.waytoagi.com/api/kb-media/BAgcbVF6JoIbAxx8Bi7c5MwjnQf)

This is a GitHub tutorial written at a “dad-level” clarity. If you are an AI programming enthusiast, this article will be extremely helpful to you.

Just how powerful is GitHub? It is home to 180 million developers and at least 600 million repositories. All the open-source projects from companies you know—Tencent, Alibaba, and ByteDance—are hosted on GitHub.

The content covers a vast range of topics, all open-source and free: from the recently viral OpenClaw, to digital humans, Skill repositories, and even the code from the Apollo moon landing.

GitHub is no longer just for programmers. Thanks to the rapid improvement in AI coding capabilities, almost everyone now needs their own GitHub repository.

In this guide, Lao Wang will walk you through its core features, including:

- How to register, search, and use GitHub
- Understanding GitHub’s detailed functionalities
- How to submit and back up your projects on GitHub

# What is Open Source?

Before talking about GitHub, we need to clarify a more fundamental concept: what does it actually mean when someone says they have “open-sourced” their code?

At its core, code is just text. When you write a program, it becomes a text file. “Not open-sourcing” means this text exists only on your computer and no one else can see it. “Open-sourcing” means you upload this text file to GitHub, set the repository to public, and anyone can view it, copy it, or modify it.

However, open-sourcing does not mean giving up all ownership. You can still include a license in your code that specifies what others are allowed (and not allowed) to do with it. The MIT license is the most permissive, with almost no restrictions. The GPL license is the strictest: if someone uses your code, their own code must also be open-sourced. If you include no license at all, you legally retain all rights by default, though in practice it’s hard to enforce.

Once you understand this foundation, all the following operations will revolve around it.

![](https://www.waytoagi.com/api/kb-media/RE6DbMeS0oU16bxXpDBcIe0Qnme)

# The Difference Between Git and GitHub

Although the names look similar, they are not the same thing.

**Git** is a version control tool that you install on your computer. It records every change to your code—who changed what and when—and allows you to revert to any previous version at any time. Git works offline and does not require an internet connection.

**GitHub** is a website that runs in the cloud. It hosts your Git repositories on its servers, enabling you to share code and collaborate with others. You push your local Git repository to GitHub, where others can view and download it.

In short: Git is the version history notebook on your computer, while GitHub is the cloud backup and collaboration platform for that notebook.

![](https://www.waytoagi.com/api/kb-media/AGLZbQHejormedx4CnlcvLpXnKe)

# Creating a GitHub Account

Open your browser, type [github.com](https://github.com/) in the address bar, and press Enter. In the center of the page, click the green **Sign up** button.

![](https://www.waytoagi.com/api/kb-media/WgQ3bBj4joZFb3xZU9jcbEtbnZg)

You will need to fill in four fields: email, password, username, and country/region.

Use a Gmail address for the email. If you don’t have one, register one in advance here:  
*(Note: The original article links to Gmail registration)*

Gmail is highly recommended because not only GitHub, but also tools you’ll use later—such as Supabase for databases, Vercel for deployment, and Cloudflare for domains—all support one-click Google login. A single Gmail account in Chrome can handle everything and saves you from repeated registrations.

QQ Mail and 163 Mail often send verification emails to the spam folder, so they are not recommended.

![](https://www.waytoagi.com/api/kb-media/QpFxbqyu1o1PTYxhZX0czgWinHc)

Your username is your identity on GitHub. It will appear in all your code links in the future. Don’t use temporary names like “test001”. Choose your real name in pinyin or a long-term English ID.

For the password, it’s best to let your browser generate a strong one and save it in a password manager. Passwords you come up with yourself are likely to be reused elsewhere; if one account is compromised, all your accounts are at risk.

After completing the CAPTCHA, GitHub will send a verification email to your inbox containing an 8-digit code. Copy and paste it back to complete verification. Your registration is now finished.

# Enable Two-Factor Authentication

The first thing you should do after registering is to enable 2FA (two-factor authentication).

Since 2023, GitHub has required all accounts that have made code contributions to enable 2FA. If you have ever uploaded files, created Issues, or submitted PRs, you must enable it within 90 days. Otherwise, your account will be restricted.

To set it up: click your avatar in the top right corner, select **Settings**, then click **Password and authentication** in the left sidebar. Find **Two-factor authentication** and click **Enable**.

![](https://www.waytoagi.com/api/kb-media/D6JmbSshtoI63Wxpx0ScuWRonQh)

Among the three options, we recommend using an **Authenticator app**. Download Google Authenticator on your phone, scan the QR code to bind it, and from then on, every login will require both your password and the 6-digit dynamic code shown in the app.

![](https://www.waytoagi.com/api/kb-media/D2hlb4A1do3jhixjmrGcgnRanGd)

After binding, GitHub will provide you with 16 recovery codes.

You must store these recovery codes safely. If you lose your phone or delete the app, these 16 codes are your only lifeline.

Copy them into a password manager or print them out and lock them in a drawer.

![](https://www.waytoagi.com/api/kb-media/T5atbDhuToweA1xCx6Tclex7ngb)


# Create a Repository

Once you have an account, the first thing to do is create your own repository. A repository is the smallest unit for storing code on GitHub — one project, one repository.

Click the plus icon in the top right corner and select **New repository**. On the creation page, fill in the following fields:

![](https://www.waytoagi.com/api/kb-media/Tehdbc6Boo2BlDx0HZVc3mDan8g)

**Repository name**: Use lowercase English letters only, with hyphens between words. For example, `my-first-project`. Do not use Chinese characters.

**Description**: A one-sentence summary of what the repository is for. Optional, but recommended — it helps you understand the project at a glance later.

**Public** or **Private**: Public repositories allow anyone to view your code; private ones are visible only to you and people you invite. Free accounts can create unlimited numbers of both — feel free to choose.

Below are three initialization options. Check **Add a README file** — this is the face of your repository. It’s the first thing people see when they open it. For **Add .gitignore**, select **None** for now (we’ll cover it later). For **Choose a license**, you can skip it if you don’t plan to open-source the project for others to use.

Click the green **Create repository** button, and your repository is ready. At this point it contains only a `README.md` file. Once you push your local code, it will gradually fill up. Old Wang always checks the README box when creating a new repository. Repositories without a README feel empty — people tend to leave immediately without exploring further.

![](https://www.waytoagi.com/api/kb-media/LNUAbK4HcoAhkuxCnpvcVrTwn1c)


# Search for Projects

GitHub hosts hundreds of millions of repositories. Being able to find what you need is your first real skill on the platform.

Simply type in the top search bar. For example, type `OpenClaw` and press Enter. On the search results page, use the type filters on the left: switch to **Repositories** to browse projects, or **Code** to search within code content.

![](https://www.waytoagi.com/api/kb-media/BGSIbp3gGoPVNOxteYhcdbyznLg)

Here are some of the most useful search qualifiers. When combined, they let you narrow results with extreme precision:

- `language:python` — search only Python projects
- `stars:>1000` — only popular projects with more than 1,000 stars
- `pushed:>2026-01-01` — projects that are still actively updated this year
- `in:name` — keyword appears in the repository name

Combine them freely. For example, to find actively maintained machine learning projects written in Python with over 5,000 stars updated this year, enter:

`machine learning language:python stars:>5000 pushed:>2026-01-01`

Old Wang relies on this search syntax every day to find open-source solutions, compare competing projects, and study reference implementations. It’s an order of magnitude faster than searching on general search engines, and the results are clean — no SEO spam articles mixed in.

![](https://www.waytoagi.com/api/kb-media/P58SbMSLaoB7RHxE2HdcPkkWnMd)

# Understanding a Repository

On GitHub, every project is a repository, or “Repository” in English. Open any repository page and this guide will explain every section and button from top to bottom.

![](https://www.waytoagi.com/api/kb-media/WS2Hb3h7loXPwfx55Vtcd10XnKb)

The repository name is in the format `username / repository-name`. Clicking the username takes you to that person’s profile page.

Next to it is a small label indicating whether the repo is **Public** or **Private**.

![](https://www.waytoagi.com/api/kb-media/FHAQbYqfCoyjiuxqCYVczQsHn9e)

To the right are three buttons:

![](https://www.waytoagi.com/api/kb-media/R8pMbuGFcoXveixqrm3ca7j1nle)

- **Star**: Bookmark and like the project. Once starred, the repository appears in your personal collection. You can find all your starred repos under **Your stars** in the profile avatar menu. The higher the Star count, the more popular the project is. When looking for open-source projects, always check this number first.

- **Fork**: Creates a complete copy of the repository under your own account. After forking, you have an independent copy that you can modify freely without affecting the original project.

- **Watch**: Subscribe to update notifications. Once enabled, you will receive alerts for new Issues, Pull Requests, and releases. If you don’t need notifications, leave it at the default setting.

Below the horizontal bar is a row of tabs. For everyday use, you only need the first three.

- **Code**: The default view and the main place to browse code and files. Almost all operations happen here.

![](https://www.waytoagi.com/api/kb-media/QYOob31r3opgRyxc0omcQYs3nFe)

- **Issues**: The ticket system. This is where you report bugs, request features, or ask how to use the project. If you have a question about an open-source project, search here first to see if someone has already asked the same thing.

- **Pull requests**: The merge request area. When someone wants to contribute code to the project, they submit their changes here for review. You will mainly use this when contributing to open-source projects via Fork + PR.

The remaining tabs — **Actions**, **Projects**, **Wiki**, **Security**, **Insights**, and **Settings** — are not needed during your first week of learning. You can safely ignore them for now.

The **Code** tab is the core of the entire repository and is divided into three columns: left, center, and right.

![](https://www.waytoagi.com/api/kb-media/GLokbkFKOoB860xbO9PccK20nhe)

In the upper-left corner is a branch dropdown. By default it shows **main**. The `main` branch contains the primary codebase. Some projects may have `dev` or `develop` branches, but you can ignore them and focus only on `main`.

The center column displays the file list, exactly like folders on your computer. Click a folder to enter it, or click a filename to view its code. Next to each filename is a short line showing the last modification time and commit message. Clicking it lets you see exactly what changed in that commit — red lines are deletions, green lines are additions.

Above the file list is a green **Code** button. This is the main entry point for downloading the code.

Below the file list is the **README.md** file, which is automatically rendered and prominently displayed when you open the repository. The README is the project’s instruction manual written by the author. It usually covers four key sections: what the project is, how to install it, how to use it, and a few examples. When exploring an unfamiliar project, always read the README first — it quickly tells you whether the repository is worth diving deeper into.

On the right side is the **About** sidebar, which shows the project description, primary programming language, Star count, and Fork count. Scrolling down reveals the **Releases** section. If the author has published official releases, you will see version numbers and downloadable packages here. If you want a stable version, there’s no need to clone the entire repository — simply download the corresponding zip/tarball from Releases.

If the README doesn’t explain how to install the project, it’s likely that the author didn’t intend for others to use it, or simply hasn’t gotten around to writing documentation. In that case, switching to another similar project that does have a good README will save you a lot of time.

# The Issues System

The **Issues** tab at the top of a repository can be thought of as the project’s combined message board, task tracker, and bug report center.

![](https://www.waytoagi.com/api/kb-media/OvtibfkkOo955lxFnmYcXTEknEb)

Anyone can create an Issue here to report bugs, suggest new features, or ask usage questions. Click the **New issue** button, write a title and description, then submit.

Before opening an Issue for an open-source project, do two things:

1. Search the Issues page first to see if someone has already reported the same problem. Duplicate Issues are usually closed immediately by maintainers.
2. Check the root directory of the repository for a `CONTRIBUTING.md` or `ISSUE_TEMPLATE` file, and follow the format requested by the project.

# Local Git Operations

No need to install Git. No need to memorize commands. Just open your AI coding tool (Cursor, Copilot, Claude Code, Trae — any of them will do) and talk to it directly. Here are the exact phrases to say.

To turn a project into a Git repository, tell the Agent:  
**Initialize a Git repository for me.**

![](https://www.waytoagi.com/api/kb-media/SpFTb5UVOoETAIxbJVqch6pIncc)

To clone someone else’s repository, copy the repo URL and tell the Agent:  
**Clone this repository to my local machine: [github.com/xxx/xxx](https://github.com/xxx/xxx).**

After making code changes, tell the Agent:  
**Commit all changes with the message: Fixed white screen on the login page.**

To push to GitHub, tell the Agent:  
**Push to GitHub.**

To pull the latest updates from the remote, tell the Agent:  
**Pull the latest code.**

If you already have local code and want to connect it to a newly created empty repository on GitHub, tell the Agent:  
**Link this project to the xxx repository on GitHub and push it up.**

That’s it — just these six sentences. The Agent will automatically handle everything in the background, including setting up SSH keys on the first push. You don’t need to worry about the details.

![](https://www.waytoagi.com/api/kb-media/MFyPbCRA6og5FVxu59gcY4BAngd)


# Deployment

Once your code is pushed to GitHub, how do you let others see your work in the browser? Just talk to the Agent.

For static HTML pages, use GitHub Pages. Tell the Agent:  
**Deploy this repository to GitHub Pages.**  
Thirty seconds later, the Agent will give you a public URL in the format `your-username.github.io/repo-name`. Anyone can open it and view your site.

For frontend framework projects (React, Vue, Next.js, etc.), use Vercel. Tell the Agent:  
**Deploy this project to Vercel.**  
The Agent will automatically link your GitHub repository, build the project, and assign a domain. From then on, every `git push` will trigger an automatic redeployment on Vercel. The free tier is sufficient for personal projects.

Lao Wang’s own blog is hosted on GitHub Pages. He hasn’t spent a single cent in a year, and the loading speed is faster than many paid virtual hosts in China.

Suitable for: personal portfolios, blogs, open-source project documentation sites.  
Not suitable for: applications that require a backend database or user login/registration systems.

![](https://www.waytoagi.com/api/kb-media/DsI5bEBfhoorzxxN0MrcH5Mqnmg)


# Fork — Copying a Repository

These two actions are the core collaboration mechanisms on GitHub. They are explained separately because they form the foundation of open-source collaboration.

Go to any public repository. In the top-right corner, you’ll see a **Fork** button. After clicking it, GitHub will create a complete copy of the entire repository under your own account. You will have full control over this copy.

You can modify a forked repository freely without affecting the original project. If the original author pushes new updates, your fork will not automatically sync. To sync, simply click **Sync fork**.

When should you fork?  
- If you want to contribute code to someone else’s project, first fork it to your own account, make changes in your copy, then submit a Pull Request to merge the changes back into the original project.  
- Or if you want to create your own version based on someone else’s code.


# Pull Request (PR)

A Pull Request is a critical step in open-source collaboration. The workflow is as follows:

First, fork the target project to your own account. Use `git clone` to pull your forked repository to your local machine. Make your code changes locally, then `add`, `commit`, and `push` them to your fork.

Open the GitHub page of your forked repository. A yellow banner will appear at the top asking if you want to **Compare and pull request**. Click it, fill in the title and description (clearly explaining what you changed and why), then click **Create pull request**.

After submission, the maintainers of the original project will receive a notification. They will review your changes, may leave comments asking you to revise certain parts, or may directly click **Merge** to accept your contribution. Once merged, your code officially becomes part of the original project.

![](https://www.waytoagi.com/api/kb-media/DlpgbMu7Oob5IXx7kXNc9YSCnld)

# More Open Source Projects

GitHub hosts nearly all the world's important open source projects. Below are a few representative projects from major Chinese companies and communities. These projects themselves are the best learning resources. Opening them to explore their code structure, README writing style, and Issue management practices will teach you far more — and faster — than reading tutorials one by one.

**Alibaba’s Tongyi Qianwen (Qwen)** — Alibaba’s open-source large language model series, with models ranging from 7B to 72B parameters fully open-sourced. Both model weights and training code are available for download on GitHub.  
Address: [github.com/QwenLM/Qwen](https://github.com/QwenLM/Qwen)

![](https://www.waytoagi.com/api/kb-media/TzRybe6n3o2JsfxEAQsc09Q1nKc)

**Feishu (Lark)** — The official open-source command-line tool from Feishu, covering 11 business domains including messaging, calendar, documents, email, and meetings. It also includes 19 built-in AI Agent Skills. Less than two months after release, it surpassed 10,000 GitHub Stars.

![](https://www.waytoagi.com/api/kb-media/HYgzb90ZUoYWEhxcUB4coHsankh)

Here are two particularly interesting ones.

**Apollo 11** — The original source code for the Apollo 11 Guidance Computer from the 1969 moon landing. It contains 145,000 lines of code and has over 30,000 Stars on GitHub. Opening this repository gives you a firsthand look at the engineering materials that sent humans to the Moon over fifty years ago. You can even find the engineers’ English slang in the code comments.

Address: [github.com/chrislgarry/Apollo-11](https://github.com/chrislgarry/Apollo-11)

![](https://www.waytoagi.com/api/kb-media/UEJnb9VPBoWM2Gx0mJDcgksdnAJ)

**HowToCook** — A programmer’s cooking guide with 80K Stars. Written by a Microsoft engineer while under quarantine at home, it structures recipes with a programmer’s mindset: each dish is tagged with a difficulty level, ingredients are specified down to the gram, and steps are broken into conditional branches. It doesn’t contain a single line of code, yet it may be the most practical non-code repository on GitHub.

Address: [github.com/Anduin2017/HowToCook](https://github.com/Anduin2017/HowToCook)

![](https://www.waytoagi.com/api/kb-media/BYwGbnAl7oj6npx4kAQcK3JanLv)

**English-level-up-tips** — 46K Stars. The author passed 26 exams in a single semester during his senior year and achieved the top score in both English and Chinese in the Jiangsu Province Gaokao. The repository is organized into 7 layers, from foundational knowledge to AI tools. Each layer stands alone, so you can pick and choose what to copy.  
Address: [github.com/byoungd/English-level-up-tips](https://github.com/byoungd/English-level-up-tips)

You don’t need to fully understand the code when exploring these projects. For each repository, start by reading the README to understand what the project does. Then examine the file structure to see how it’s organized. Finally, open a few core files and take a look at the code to get a feel for what real-world project code looks like. This kind of browsing is itself the best way to learn.

At this point, you’ve already mastered registering an account, searching for projects, understanding repositories, using Git to sync code between local and remote, deploying websites online, and submitting PRs to open source projects. You now have a complete, practical set of GitHub development skills.

There’s only one thing left to do: open GitHub, find a project that interests you, go in and read its README and file structure. Then use `git clone` to pull it locally, make some changes, and push them back up. Once you’ve been through the full workflow yourself, this knowledge truly becomes yours.
