Command line and terminal
Git is a text-based command line tool that is used via a piece of software called the terminal.
VS Code, the editor that you're using, has a built-in terminal. There are several ways to open it:
-
Keyboard shortcut (best). Press Ctrl + Shift + ` (if you use non-US keyboard layout, the actual shortcut may be different for you).
-
In the top-right corner of the window. Click on the Toggle Bottom Panel icon
-
From the main menu. Use the Terminal > New Terminal or View > Terminal menu commands.
In the end, you should see something like this (take a look at the bottom part, where it says TERMINAL
):
Open the terminal in VS Code.
Terminal looks too big? For the best experience, I recommend making it a quarter of the editor's height. You can resize it by dragging the border between the editor and the terminal. By the way, you can resize the sidebar in the same way!
Great, you will be a master of that black rectangle of power in no time!
Hi! I'm Alex, creator of GitByBit.
This page is a part of the interactive course about Git version control.
It's a one-of-a-kind course that is integrated into the VS Code code editor. Learning directly in VS Code lets you operate Git exactly as you would in real life, doing real jobs, writing real code.
In addition, the course has access to your actual terminal, so it can point out mistakes, suggest workarounds, etc.
The course is FREE, there are no Ads or other bullshit. There are optional premium add-ons you can purchase, mainly to support my work (regrettably, I have to eat every day), but that's totally up to you.