A super simple guide for non-technical users who've never used GitHub before.
Think of GitHub as Google Docs for code and files—but better.
- Multiple people can work on the same files
- Every change is tracked (you can always undo)
- Nothing gets lost or overwritten
- You can see who changed what and when
You don't need to be a programmer to use GitHub. Many teams use it for documentation, policies, and collaborative writing.
| Term | What It Actually Means |
|---|---|
| Repository (repo) | A project folder. Contains all your files. |
| Commit | Saving your changes with a note about what you did. |
| Push | Uploading your saved changes to GitHub. |
| Pull | Downloading the latest changes from GitHub. |
| Branch | A separate copy where you can experiment without affecting the main version. |
| Clone | Copying a repo from GitHub to your computer. |
That's it. Those 6 terms cover 90% of what you'll do.
You can do everything through github.com without installing anything:
- Read files
- Edit files (small changes)
- Upload files
- See change history
Best for: Browsing, small edits, reading documentation.
Install the GitHub CLI tool to work with files locally:
- Edit files in your preferred apps
- Make bigger changes
- Work offline
- Use Claude Code to help
Best for: Regular contributors, larger projects, using Claude Code.
- Go to the repository URL (e.g.,
github.com/company/project-name) - Click on any file to read it
- Click folders to navigate into them
- Use the search bar to find specific files
- Navigate to the file you want to edit
- Click the pencil icon (top right of the file content)
- Make your changes
- Scroll down to "Commit changes"
- Write a brief description of what you changed
- Click Commit changes
Done! Your changes are saved to GitHub.
- In the repo, click Add file → Create new file
- Type a filename (include the folder path if needed, like
docs/my-file.md) - Write your content
- Scroll down and commit with a description
- In the repo, click Add file → Upload files
- Drag and drop your files
- Commit with a description
This method is more powerful and lets you use Claude Code to help with your work.
Open Terminal and run:
brew install ghIf you don't have Homebrew installed, install it first:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Windows: Open PowerShell and run
winget install GitHub.cli, then restart PowerShell.
In your terminal, run:
gh auth login
Follow the prompts:
- Choose GitHub.com
- Choose HTTPS
- Choose Login with a web browser
- Copy the one-time code shown
- Press Enter to open GitHub in your browser
- Paste the code and authorize
You're now connected.
"Cloning" copies a GitHub repo to your computer.
-
Navigate to where you want the project:
cd ~/Documents -
Clone the repo:
gh repo clone owner/repo-nameFor example:
gh repo clone mycompany/policies -
Enter the project folder:
cd repo-name
Now you have all the files on your computer.
Edit files however you like:
- Use any text editor (TextEdit, VS Code, etc.)
- Use Claude Code: just run
ccdin the project folder
After making changes, you need to:
- Stage your changes (tell Git what to save)
- Commit them (save with a description)
- Push them (upload to GitHub)
The easy way—ask Claude Code:
Commit my changes with a message describing what I did, then push to GitHub
Claude will handle all the steps for you.
The manual way:
git add .
git commit -m "Updated the expense policy document"
git push
Before starting work, always get the latest version:
git pull
This downloads any changes others have made.
git status
Shows files you've modified, added, or deleted.
git log --oneline
Shows a list of recent commits (changes).
git checkout -- filename
Reverts a file to the last saved version.
git checkout -b my-experiment
Now you're on a separate branch. Changes here won't affect the main version until you merge them.
Once you've cloned a repo, Claude Code becomes incredibly powerful. Here's what you can do:
Navigate to your project folder:
cd ~/Documents/my-project
Start Claude Code:
ccd
Ask Claude to help:
- "What files are in this project?"
- "Show me the README"
- "Update the employee handbook to include the new PTO policy"
- "Create a new document called quarterly-goals.md"
- "Commit my changes and push to GitHub"
Claude handles all the Git commands for you. You just describe what you want in plain English.
"Permission denied" or "Authentication failed"
- Run
gh auth loginagain - Make sure you're logged into the right GitHub account
"Repository not found"
- Check the spelling of the repo name
- Make sure you have access (ask your admin)
"Your branch is behind"
- Run
git pullto get the latest changes - If there are conflicts, ask Claude Code: "Help me resolve these Git conflicts"
"Changes not showing on GitHub"
- Make sure you committed AND pushed
- Run
git statusto see what needs to be done
- Pull before you start — Always run
git pullbefore making changes - Commit often — Save your work in small chunks, not one giant change
- Write clear commit messages — "Updated Q1 budget figures" is better than "changes"
- Don't commit sensitive data — Keep passwords and API keys out of GitHub. See API Keys & Environment Variables for how to use
.envfiles and.gitignoreto keep secrets safe
The best way to learn is to experiment. You can't really break anything—Git's history feature means everything can be undone.
When in doubt, ask Claude Code:
- "What's the current status of this Git repo?"
- "Help me push my changes to GitHub"
- "Explain what this Git error means"