Skip to main content
Now — Git Command Reference with 28 commands

How To Use GitHub
Master Git from Basics to Advanced.

Learning how to use GitHub starts here. A comprehensive Git command reference with clear explanations and real examples. Learn git commit, branch, merge, push to GitHub, and more — all in one place. Whether you are asking what is GitHub or mastering GitHub Actions, we have you covered.

terminal — git log --oneline --graph
$ git log --oneline --graph --all
* 1a2b3c4feat: add user authentication flow
| * 5d6e7f8refactor: extract auth middleware
| * 9a0b1c2fix: handle token expiry gracefully
|/
* 3d4e5f6Merge branch feature/dark-mode
* 7g8h9i0Initial commit — Set up project
28 CommandsComprehensive reference
Real ExamplesCopy & run
8 CategoriesOrganized by topic
Beginner FriendlyClear explanations

How To Use GitHub

Your Complete Guide to GitHub and Git

From your first commit to advanced workflows — learn how to use GitHub like a pro.

What Is GitHub?

GitHub is the largest platform for version control and collaboration. It hosts millions of repositories and integrates with tools like GitHub Actions for automation, GitHub Pages for static site hosting, and GitHub Copilot for AI-powered code suggestions. Whether you are wondering what is GitHub or looking to master it, this guide covers everything. Use GitHub login to access your account, check GitHub status for service health, and connect via GitHub Desktop for a visual interface. One common question is is GitHub free — yes, GitHub offers free accounts with unlimited public and private repositories.

Git Commit: The Core of Version Control

The git commit command is the heartbeat of Git. Every git commit creates a snapshot of your project. Add a git commit message with git commit -m to describe your changes. Use git commit amend to edit the last commit without creating a new one. A proper git commit example looks like git commit -m "Fix login bug". Learn how to write a git commit with comment and understand git commit vs push — commit saves locally, push sends to GitHub. Use git commit all with the -a flag, and master the git commit and push command workflow: git commit -m "message" && git push. Browse all git commit examples →

How To Push to GitHub

Learning how to push to GitHub is essential for every developer. After committing locally, run git push origin main to upload your changes. Need to know how to delete a repository in GitHub? Go to repository Settings, scroll to Danger Zone, and click Delete. Wondering how to change GitHub visibility? Toggle between public and private in repository settings. For students, the GitHub Student Developer Pack offers free tools and credits. And if you are asking is GitHub Copilot free — it is free for verified students and open source maintainers.

GitHub Pages, Actions & Copilot

GitHub Pages lets you host static websites directly from a repository — perfect for project docs and personal sites. GitHub Actions provides CI/CD pipelines to automate testing, building, and deployment. GitHub Copilot is your AI pair programmer, suggesting code in real time. Monitor service reliability with GitHub status at status.github.com. The platform also hosts fun projects like retro bowl GitHub and openclaw GitHub — showing the community side of GitHub games.

GitHub Repositories & Collaboration

A repository is where your project lives. Learn how to delete repository in GitHubsafely, how to change GitHub visibility from private to public (h2hgithub), and how to manage collaborators. Use branches to work on features independently, then open pull requests for review. The GitHub Student Developer Pack includes free access to professional developer tools. Remember to always check GitHub status before pushing critical updates.

Getting Started with Git Commands

Master the essential git commit workflow and beyond. This guide covers git commit message best practices, git commit amend for fixing mistakes, git commit vs push to understand local vs remote, and the complete git commit and push command sequence. Every git commit example on this site is copyable and tested. Start with git commit -m and level up to git commit all with git commit -a -m. See all git commands →

How To Use GitHub: The Complete Workflow

How To Use GitHub effectively starts with understanding the basic workflow: clone or initialize a repository, make changes, stage them with git add, create a git commit with comment, and push to GitHub. Whether you use the command line, GitHub Desktop, or IDE integrations, the core concepts remain the same.

GitHub is free for individuals and teams. The free tier includes unlimited repositories, GitHub Actions minutes, and GitHub Pages hosting. For students, the GitHub Student Developer Pack unlocks premium tools at no cost. Wondering is GitHub free for your use case? Start with a free account and upgrade as your needs grow. Check GitHub status for platform reliability.

Beyond work, GitHub games like retro bowl GitHuband openclaw GitHub showcase the creative side of open source. You can find game repositories, contribute to them, or even host your own using GitHub Pages. The GitHub loginprocess is simple — sign up with your email, and you are ready to explore millions of repositories.

Ready to dive in? Browse our complete Git command referencefor detailed guides on every git commit variation, fromgit commit -m to git commit amend and beyond.

How It Works

Learn Git the easy way.

No fluff. Just clear, practical explanations with real commands you can use today.

1

Pick a Command

Browse 28 commands across 8 categories — from git commit and git push to git rebase.

2

Write a Git Commit

Learn git commit, git commit message, git commit -m, git commit amend, and git commit all.

3

See Real Examples

Every git commit example is copyable. Learn git commit vs push and the full workflow.

4

Push to GitHub

Master how to push to GitHub, manage repositories, and collaborate with your team.

Every command includes real examples

Each command page has copyable examples with sample output. Learn by reading, then run them in your own terminal.

Browse All Commands
$git commit -m "Initial commit"
$git branch feature-login
$git merge feature-login
$git log --oneline -5

Skill Levels

From beginner to advanced — we cover it all.

Whether you are writing your first commit or rebasing a complex branch history, our reference has you covered.

Getting Started

Commands: init, clone, config, help

Working with Changes

Commands: status, add, commit, diff

Branching & Merging

Commands: branch, merge, rebase, checkout

Inspecting History

Commands: log, show, blame, reflog, shortlog

Remote Repos

Commands: push, pull, fetch, remote

Stashing & Cleaning

Commands: stash, clean

Tagging & Releases

Commands: tag, describe

Undoing Changes

Commands: reset, revert, restore

Start your Git journey today

No account needed. No downloads. Just clear explanations and examples you can start using immediately.

Start learning Git today

No sign-up, no downloads. Just clear explanations and examples you can start using immediately.

28 commands8 categoriesExplore →

Pick a Category

Choose from 8 categories — Getting Started, Branching, Remotes, and more.

Read & Understand

Each command has a plain-English explanation with syntax and flags.

Try the Examples

Copy the example and run it in your terminal. See what each command does.

Support

Frequently Asked Questions

Common questions about Git commands, workflows, and best practices.

About the Reference

Git Basics

Commands & Usage

Branching & Merging

Working with Remotes

Troubleshooting

Still have questions about Git?

Contact our support team