Git Commands
Git commands organized by task, with explanations and examples.
Download optionsThe records
The 10 most recently added of 51 records · Select a column heading to sort.
| ID | Command | Category | Description | Example |
|---|---|---|---|---|
| 42 | git revert | Undo | Create a new commit that undoes existing commits | git revert HEAD |
| 43 | git clean | Undo | Remove untracked files from the working tree | git clean -fd |
| 44 | git apply | Undo | Apply a patch to files and to the index | git apply patch.diff |
| 45 | git config | Config | Get and set repository or global options | git config --global user.name "Me" |
| 46 | git help | Config | Display help information about Git | git help commit |
| 47 | git rev-parse | Config | Pick out and massage parameters for other commands | git rev-parse HEAD |
| 48 | git version | Config | Display the version of Git that is installed | git --version |
| 49 | git gc | Config | Clean up unnecessary files and optimize the repository | git gc |
| 50 | git fsck | Config | Verify the connectivity and validity of objects | git fsck |
| 51 | git cat-file | Config | Show content, type, or size of repository objects | git cat-file -p HEAD |
Free sample files (up to 10 rows): CSV JSON XML
Scope and sources
Last checked against sources: October 16, 2026.
Last changed: July 19, 2026. This is when we last changed the data or its description. It doesn’t mean the data runs up to that date.
- Git Reference Manual (git-scm.com) (used with permission)
A complete download includes all 51 records currently held in this dataset. Check the description and sources to decide whether its scope fits your project.
Use this dataset through the API
GET https://mysafeinfo.com/api/data/gitcommands
Choose a format, sort, or request fewer rows. A pass key gives access to the complete dataset. See the examples and parameters.
Without a pass, sorting and randomization apply only to the fixed 10-row sample.