Git Commands
Git commands organized by task, with explanations and examples.
Download optionsThe records
10 of 51 records ยท Select a column heading to sort.
| ID | Command | Category | Description | Example |
|---|---|---|---|---|
| 1 | git init | Basics | Create an empty Git repository or reinitialize an existing one | git init |
| 2 | git clone | Basics | Clone a repository into a new directory | git clone https://github.com/u/r.git |
| 3 | git add | Basics | Add file contents to the staging area | git add . |
| 4 | git status | Basics | Show the working tree status | git status |
| 5 | git commit | Basics | Record staged changes to the repository | git commit -m "message" |
| 6 | git diff | Basics | Show changes between commits and the working tree | git diff |
| 7 | git rm | Basics | Remove files from the working tree and the index | git rm file.txt |
| 8 | git mv | Basics | Move or rename a file, directory, or symlink | git mv old.txt new.txt |
| 9 | git grep | Basics | Print lines matching a pattern in tracked files | git grep "TODO" |
| 10 | git ls-files | Basics | Show information about files in the index and working tree | git ls-files |
Free sample files (up to 10 rows): CSV JSON XML
Scope and sources
Last changed: July 19, 2026. This may reflect a change to the data or its description; it is not a coverage-through 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.