Toolbox / Git command cheat sheet Runs in your browser中文
Development

Git command cheat sheet

Forgot a Git command? Search commit or branch for examples. This is a reference, not a tool that runs commands on your repository.

Ctrl / ⌘ + Enter Run

Ready when you are

01

Add your contentPaste text or try a sample

02

Choose an actionClear options. Predictable results.

03

Take it with youCopy, download and carry on

Less switching. More focus.Functional build · Validation in progress

Using this tool

Look up common Git commands and their purpose before deciding whether they fit your repository.

Actions: Process

Example

Search rebase to show related entries; commands are displayed, not executed.

Example action and settings

Action: Process

Input / action

rebase

Result / expected behavior

git rebase <base>
  Replay commits onto a new base (rewrites history)

git rebase -i HEAD~3
  Interactively edit the last three commits

git rebase --continue
  Continue a rebase after resolving conflicts

git rebase --abort
  Abort a rebase and restore its starting state

Scope and limitations

  • The static reference does not read repository state or resolve conflicts.

Common mistakes

  • Do not run placeholders literally; rebase and some reset commands rewrite history or discard changes.

Related tools

Text diff

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.