Learn Git and GitHub basics
Six half-hour sessions built on the free Pro Git book and GitHub's own docs. You'll put a small project under version control, write a README, and finish with it live on GitHub showing three meaningful commits.
Outcome
A public GitHub repository with a README.md, a .gitignore, and three commits that each describe one real change, created and pushed from your own terminal.
- Every resource is a real public page our team picked. Our server checks the links; if one ever breaks, tell us and we'll replace it.
- Never commit passwords, API keys, or personal documents. Anything pushed to a public repository can be copied by anyone, even if you delete it later.
- GitHub sign-in at the command line uses a browser login or a token, not your GitHub password. If a push asks for a password, stop and redo the sign-in step.
- Commit hashes like 3c76dbc are examples; yours will be different.
- 10,000 seconds is a structured starting point. It builds a real first result, not guaranteed expertise.
Outline
- 127:47
Install and set up Git
Git is installed and knows your name and email.
- 227:47
Make a repository and your first commit
A project folder is a Git repository with one meaningful commit.
- 327:47
Track changes: status, diff, and .gitignore
Read what changed before committing, and keep junk files out of your history.
- 427:47
Write a README
Your project has a clear README.md written in Markdown, committed.
- 527:46
Put your project on GitHub
Your repository is on GitHub with two commits and the README showing.
- 627:46
Capstone: the third commit and a clean history
A GitHub project with a README and three meaningful commits, all pushed.
Capstone
Your project on GitHub
A public GitHub repository with a README, a .gitignore, and at least three commits that each describe a single real change, all pushed from your own computer.
Sources
- Getting Started: First-Time Git Setup
Pro Git book (git-scm.com)
Not yet verifiedFree - Git Basics: Getting a Git Repository
Pro Git book (git-scm.com)
Not yet verifiedFree - Git Basics: Viewing the Commit History
Pro Git book (git-scm.com)
Not yet verifiedFree - Getting Started: Installing Git
Pro Git book (git-scm.com)
Not yet verifiedFree - Git Basics: Recording Changes to the Repository
Pro Git book (git-scm.com)
Not yet verifiedFree - Git Basics: Working with Remotes
Pro Git book (git-scm.com)
Not yet verifiedFree - About the repository README file
GitHub Docs
Not yet verifiedFree - Adding locally hosted code to GitHub
GitHub Docs
Not yet verifiedFree - Caching your GitHub credentials in Git
GitHub Docs
Not yet verifiedFree - Basic writing and formatting syntax
GitHub Docs
Not yet verifiedFree