morekits.com
Content ToolsNEWImage ToolsNEWTime ToolsHOTFinance ToolsHOTWeb & Dev ToolsUtility Tools
morekits.com

Free, privacy-first online tools for content, time, finance, and web tasks. Fast, secure, and 100% client-side.

Categories

Content ToolsImage ToolsTime ToolsFinance ToolsWeb & Dev ToolsUtility ToolsReferences

Popular Tools

Text ComparisonCompound Interest CalculatorTime ConverterWorld ClockPrepayment CalculatorNumber (Amount) to Chinese UppercaseWiFi QR GeneratorImage WatermarkLPR Interest RateCountry CodesCurrency Codes

More

TutorialsAll ToolsTagsChangelog

© 2026 morekits.com. All rights reserved.

About UsLegal & TermsContact
  1. References
  2. Git Command

Git Command 2026

Commonly used Git commands and their usage.

DeveloperReference
4.7

Setup & Init

git config --global user.name "[name]"

Sets the name you want attached to your commit transactions.

git config --global user.email "[email]"

Sets the email you want attached to your commit transactions.

git init

Creates a new local repository.

git clone [url]

Downloads a project and its entire version history.

Basic Snapshots

git status

Lists all new or modified files to be committed.

git add [file]

Snapshots the file in preparation for versioning.

git commit -m "[message]"

Records file snapshots permanently in version history.

git log

Lists version history for the current branch.

git diff

Shows file differences not yet staged.

Branching & Merging

git branch

Lists all local branches in the current repository.

git checkout -b [branch-name]

Creates a new branch and switches to it.

git switch [branch-name]

Switches to the specified branch.

git merge [branch]

Combines the specified branch's history into the current branch.

git branch -d [branch-name]

Deletes the specified branch.

Remote Repositories

git remote add [name] [url]

Adds a new remote repository.

git fetch [remote]

Downloads all history from the remote repository.

git pull

Fetches and merges any commits from the remote to the local branch.

git push [remote] [branch]

Uploads local repository content to a remote repository.

Undo & Redo

git reset [file]

Unstages the file, but preserves its contents.

git revert [commit]

Creates a new commit that undoes the changes from a previous commit.

git reset --hard [commit]

Discards all local changes and resets to the specified commit.

git stash

Temporarily stores all modified tracked files.

git stash pop

Restores the most recently stashed files.

Worktree

git worktree add [path] [branch]

Adds a new worktree at the specified path, checking out the specified branch.

git worktree list

Lists the details of each worktree.

git worktree remove [path]

Removes the worktree at the specified path.

git worktree prune

Removes information for worktrees that no longer exist on the disk.

Key Features

Searchable Commands

Find Git commands by keyword or topic.

Clear Descriptions

Short, practical explanations for quick recall.

Example Usage

Practical examples for common workflows.

Private by Default

No data is sent or stored.

Common Use Cases

Developer Onboarding

Teach common Git workflows to new team members.

Daily Workflow

Quickly recall commands for commit, branch, and merge.

Troubleshooting

Look up commands to resolve conflicts or undo changes.

Documentation

Link to command references in internal docs.

MoreKits Git Command Reference lists common Git commands with short explanations and examples. It helps developers learn workflows, resolve issues, and speed up daily work. Search by command or topic for quick recall. The cheat sheet ships with the page so your searches never leave the tab.
Guide
Long-form walkthrough with practical tips.
Essential Git Commands Reference for Developers — Read the tutorial

How to Use Git Command Reference

1

Search a Command

Type a command like git rebase or git reset.

2

Review Usage

Read the description and example usage.

3

Apply in Workflow

Use the command in your repo with confidence.

FAQ

Authoritative References

Git DocumentationGitHub Git Reference

Related Tools

Linux CommandText ComparisonCode FormatterURL ParseHash
Explore more in References