開発支援

Git チートシート

カテゴリ別に整理された Git コマンドを検索し、ブランチ、マージ、rebase、stash などの操作を素早く参照できます。

無料で利用 登録不要 ブラウザ内で実行

ツール操作エリア

Setup & Config

git init

Initialize a new Git repository in the current directory

--bare
git clone <url>

Clone a remote repository to your local machine

--depth 1--branch <name>--recurse-submodules
git config user.name "<name>"

Set the author name for commits

--global--local--list
git config user.email "<email>"

Set the author email for commits

--global--local

Staging & Commits

git add <file>

Stage a file for the next commit

-A-p.
git commit -m "<message>"

Create a commit with a message

--amend--no-edit-a--allow-empty
git status

Show the working tree status

-s--short
git diff

Show unstaged changes

--staged--cached--stat--name-only
git log

Show commit history

--oneline--graph--all-n <number>--author=<name>

Branching & Merging

git branch

List, create, or delete branches

-a-d <branch>-D <branch>-m <new-name>
git checkout <branch>

Switch to a branch or restore files

-b <new-branch>--
git switch <branch>

Switch to a branch (modern alternative to checkout)

-c <new-branch>--detach
git merge <branch>

Merge a branch into the current branch

--no-ff--squash--abort
git rebase <branch>

Reapply commits on top of another branch

-i--onto--abort--continue

Remote

git remote -v

List remote repositories with URLs

add <name> <url>remove <name>rename <old> <new>
git fetch

Download objects and refs from a remote

--all--prune<remote>
git pull

Fetch and integrate changes from a remote branch

--rebase--no-rebase<remote> <branch>
git push

Upload local commits to a remote repository

-u origin <branch>--force--tags--delete <branch>

Stash

git stash

Temporarily save uncommitted changes

-u--include-untracked-m "<message>"
git stash pop

Apply the most recent stash and remove it from the list

git stash list

List all stashed changes

git stash drop

Remove a specific stash entry

stash@{n}
git stash apply

Apply a stash without removing it from the list

stash@{n}

Undo & Reset

git reset <file>

Unstage a file while preserving changes

--soft HEAD~1--mixed HEAD~1--hard HEAD~1
git revert <commit>

Create a new commit that undoes a previous commit

--no-commit-n
git restore <file>

Discard changes in the working directory

--staged--source=<commit>
git clean -fd

Remove untracked files and directories

-n (dry run)-x-i

Inspection

git log --oneline

Show compact commit history (one line per commit)

git log --graph --all

Visualize branch history as a graph

git show <commit>

Display details and diff of a specific commit

git blame <file>

Show who last modified each line of a file

git reflog

Show a log of all reference updates (useful for recovery)

git shortlog -sn

Summarize commit counts by author

Tags

git tag <name>

Create a lightweight tag at the current commit

git tag -a <name> -m "<msg>"

Create an annotated tag with a message

git tag -l

List all tags

"v1.*"
git push origin <tag>

Push a specific tag to a remote

--tags
git tag -d <name>

Delete a local tag

What is Git チートシート?

Git チートシート helps people convert, inspect, validate, or generate git, cheatsheet, cheat, sheet, commands, reference directly in the browser. It is designed for everyday work, coding, debugging, documentation, quality checks, and data preparation where clear input, reliable output, and privacy-first local processing matter.

Git チートシートの使い方

  1. 1検索語、拡張子、コード、カテゴリなどで対象を絞り込みます。
  2. 2一覧や候補から必要な項目を選び、詳細や対応関係を確認します。
  3. 3参照値や説明をコピーするか、そのまま仕様確認に使います。

Common Git チートシート use cases

Developer debugging

Use Git チートシート to quickly inspect generated output, API payloads, configuration values, or encoded data while building and debugging software.

Review before reuse

Validate or transform git, cheatsheet, cheat, sheet, commands, reference before adding the result to a project, document, form, message, or shared file.

Privacy-first browser processing

Run common git, cheatsheet, cheat, sheet, commands, reference tasks locally in the browser without sending sensitive development data to a backend service.

よくある質問

What problem does Git チートシート solve?

カテゴリ別に整理された Git コマンドを検索し、ブランチ、マージ、rebase、stash などの操作を素早く参照できます。

Do I need to install software to use Git チートシート?

No. The tool works in a modern web browser, so you can complete the task without installing a separate desktop application.

Does this tool upload my data?

The tool is designed to run in the browser whenever possible. Tools that require a backend or AI service are labeled separately.