Git Getting started with Git Learning about a command

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

To get more information about any git command – i.e. details about what the command does, available options and other documentation – use the --help option or the help command.

For example, to get all available information about the git diff command, use:

git diff --help
git help diff

Similarly, to get all available information about the status command, use:

git status --help
git help status

If you only want a quick help showing you the meaning of the most used command line flags, use -h:

git checkout -h


Got any Git Question?