2. Setting up Git

The git command

Now, let's run the git command in the terminal. Select the terminal, type the git command, and press the Enter key on your keyboard.

Task

Run the git command in the VS Code terminal.

If everything went according to plan, you should see something like this:

git command in the terminal

When you run the git command without any parameters, it simply shows you the list of available commands and options. It's the same as running git help. In fact, you can run git help ... to get more information about any command. For example, git help commit will show you the detailed documentation for the git commit command.

Git opens these help pages in a special pager mode. Use the arrow keys or the Page Up/Page Down keys to scroll, and press Q when you're done. The pager normally wraps long lines for you, so you shouldn't have to scroll sideways.

Next step
© 2024-2025 GitByBit.All rights reserved.