Back to Blog

Git Commands I Use Every Day

A practical list of Git commands that I actually use while working on projects.

July 29, 20261 min read
#git#development

Git has hundreds of commands, but in day-to-day development I regularly use only a handful.

Check Status

BASH
git status

Probably the command I run the most.

Stage Everything

BASH
git add .

Stages all modified files.

Commit Changes

BASH
git commit -m "Add reading progress bar"

Keep commit messages short but descriptive.

Push Changes

BASH
git push

Uploads local commits to the remote repository.

Pull Latest Changes

BASH
git pull

Useful when working across multiple machines.

View Commit History

BASH
git log --oneline

Shows a concise commit history.

Switch Branches

BASH
git switch feature/blog

Much easier to read than the older checkout command.

Create a New Branch

BASH
git switch -c feature/toc

Creates and switches to a new branch in one command.

Final Thoughts

You don't need to memorize every Git command.

Master the handful you use every day, then learn new ones as your workflow grows.