LOW-SPEC PC LAB

Verification machine: Core i5-7260U / RAM 8GB / SSD 256GB|Current OS: Ubuntu 24.04.5

EN

Weekly update / 2026.11

Git and GitHub run comfortably on 8GB of PC RAM: from first repository to push

Git and GitHub first steps. Covers install, initial setup, repository creation, commit, and push, summarized in the order least likely to trip you up, even on a low-spec PC.

Git is a tool for recording changes to code, and GitHub is the service that puts it online. On an 8GB mini PC without external GPU, Git operations themselves are very light and comfortable. This article covers creating the first repository and pushing to GitHub.

Bottom line: Installed Git for Windows, set the username and email, created an empty repository on GitHub, and pushed. About 20 minutes on the verification machine. The heavy part is only the first download.

1. Install Git

Download the installer from the Git for Windows official site, and proceed with default settings. After install, confirm in the Command Prompt:

git --version

If the version shows, it's a success. If not, open the terminal again or check PATH.

2. Set username and email

git config --global user.name "Your Name"
git config --global user.email "you@example.com"

The name and email you set here appear in the commit history. Matching the email you use on GitHub makes contributions display correctly.

3. Create the working folder

Create a folder like my-first-repo on the desktop, and initialize Git there:

mkdir my-first-repo
cd my-first-repo
git init

Running git init creates a hidden .git management folder in the folder. Deleting it loses history, so don't touch it.

4. Add files and commit

echo # My First Repo > README.md
git add README.md
git commit -m "Initial commit"

git add means "include in the record," and git commit means "save the current state as history." If you separate these two steps, you get used to them without confusion later.

5. Create the repository on GitHub

  1. Log in to GitHub, click the "+" at the top right, then select "New repository".
  2. Name the repository my-first-repo.
  3. Don't check "Add a README file," and create it as an empty repository.
  4. Note the URL displayed after creation.

6. Push

git branch -M main
git remote add origin https://github.com/your-username/my-first-repo.git
git push -u origin main

On the first run, it asks for authentication. Use a GitHub Personal Access Token (PAT) instead of a password, or authenticate with GitHub CLI (gh auth login). A PAT is a one-time string shown on the screen, so store it securely.

Sticking point: If it says "Support for password authentication was removed," you need a PAT instead of a password. Issue it in GitHub Settings → Developer settings → Personal access tokens.

Notes

  • Don't put API keys, passwords, or personal info in the repository. They stay in history once pushed.
  • Large images or videos make the repository heavy. Use other storage if needed.
  • Create a .gitignore and exclude .venv, node_modules, etc.
  • Don't put company code on personal GitHub. Follow your organization's rules.

Summary

The first wall of Git and GitHub is not the number of commands, but "the roles of add and commit" and "authentication." Just getting those two down, even on a low-spec PC, makes version control comfortable.