Git Course 0%

IDE, terminal, shell, editor

Beginner Core Git Git CLI VS Code UI IntelliJ UI ≈ 8 min

What you will learn

  • The difference between a terminal, a shell, an editor and an IDE
  • Why every IDE contains a terminal, and why the course always shows the command
  • Which tool to reach for as a writer, tester or analyst

After this lesson you can

  • I can open a terminal inside VS Code or IntelliJ and run a command there
  • I can tell a colleague which shell I am using

Why this matters

"Open a terminal", "run it in the shell", "just use the IDE". Four words, four different things, all used as if everyone knew. Once you can tell them apart, half of the instructions your colleagues give you become clear, and you can choose the tool that fits your work instead of the one that happens to be open.

The four tools

Terminal Shell Editor IDE
Is a… window interpreter of commands text tool bundle
You use it to… type commands (you do not use it directly) change files change files, run, commit, all in one place
Examples Terminal.app, Windows Terminal, Git Bash window zsh, bash, PowerShell VS Code, Notepad++, TextEdit VS Code with extensions, IntelliJ IDEA, PyCharm

VS Code sits on the line: it is an editor that becomes an IDE through extensions. Both VS Code and IntelliJ include a terminal panel, so you never need a separate window.

Which one should you use?

  • Documentation and small edits: VS Code. Light, fast, excellent Markdown preview, good Git integration.
  • Working next to developers who use IntelliJ: IntelliJ IDEA (Community edition is free). You will share the same views and vocabulary as your team.
  • Running programs, checking results, reading errors: the terminal panel inside whichever IDE you use.
  • Following instructions from a colleague or from this course: the terminal, because commands are exact and copyable.

You do not have to choose forever. Many people edit in VS Code and run commands in its terminal, and switch to IntelliJ for a project their team keeps there.

Find the terminal in your tool

Open the terminal application: Terminal in Applications/Utilities on macOS (or press +Space and type "Terminal"); Git Bash from the Start menu on Windows; Terminal or Ctrl+Alt+T on most Linux desktops. Then find out which shell answers, and whether Git is reachable:

Terminal
$ echo $SHELL
/bin/zsh
Terminal
$ git --version
git version 2.50.1

On Windows, echo $SHELL in Git Bash prints /usr/bin/bash; in PowerShell the command is $PSVersionTable.PSVersion instead.

Do and don't

Do

  • Learn one shortcut: the one that opens the terminal in your IDE.
  • Run the course's Terminal commands inside the IDE's terminal if that feels safer; it is the same thing.
  • Say which shell you use when you ask for help ("Git Bash on Windows", "zsh on macOS").

Don't

  • Don't use the Windows cmd window for this course; its commands differ. Use Git Bash or PowerShell.
  • Don't open a second terminal in another folder and wonder why git status fails; the terminal's folder is what matters.
  • Don't treat the IDE's buttons as a different Git; they run the same commands.

Common mistakes

  • git: command not found in the IDE terminal but not in a separate window (or the other way round). The shells differ in where they look for programs. Lesson 3.6 fixes it.
  • Typing commands into the editor instead of the terminal. The editor saves them into a file; nothing runs. The terminal has a prompt ($ or >) and a blinking cursor at the bottom.
  • Copying the $ from the course into the terminal. The $ marks the prompt and is not part of the command; the Copy button leaves it out.

Try it yourself

Goal: open the terminal inside your IDE and confirm which shell and which Git you have.

  1. Open the trailguide playground folder in VS Code or IntelliJ.
  2. Open the integrated terminal with the shortcut from the tab above.
  3. Run echo $SHELL (macOS, Linux, Git Bash) and git --version.

Expected result: the shell path (for example /bin/zsh) and a Git version of 2.23 or higher.

Show solution

If git --version fails, Git is not installed or not on the path: go to Install Git. If the version is older than 2.23, update it; git switch and git restore, used throughout the course, need 2.23 or newer.

Check yourself

1. A colleague says "run this in the shell". What do they mean?
2. What does an IDE add to a plain text editor?
3. Which of these is the safest choice for this course on Windows?

Key terms

Terminal IDE Git