ホーム 暮らし What is the GitHub "Terminal"? A Beginner's Guide 💻✨

What is the GitHub "Terminal"? A Beginner's Guide 💻✨

東條 淳平 東條 淳平 • 更新: • 公開: • 読了約 7 分
目次

Basics of the Terminal

n491a5c0063c6

You often see the term "Terminal" in GitHub explanations. This is not the name of an app or software, but rather refers to a screen (tool) for issuing commands directly to the computer. Imagine entering white text on a black background.

  • ️ Terminal = "The window for entering commands"

  • Shell = The program running in that window

  • bash or zsh = Types of shells

In short, the "Terminal" is the entrance screen, and things like "bash" are the engines running inside it.

The Role of the Terminal

What you can do
  • Enter and execute Git commands (e.g., git clone, git commit, git push)

  • Build and run programs

  • File and folder operations (create, move, delete, etc.)

  • Automated processing and script execution

Analogy: "Terminal = Telephone handset." You convey commands to the OS through the handset (terminal).

The Relationship Between Terminal and GitHub

GitHub is a remote source code management service. By using the terminal, you can interact with GitHub as follows:

  • git clone <URL>: Copy a repository from GitHub to your PC

  • git add .: Add changed files

  • git commit -m "message": Record changes

  • git push origin main: Upload changes to GitHub

These can also be done via GUI (button operations), but the advantage of using the terminal is that you can perform operations quickly and with more precision.

Commonly used terminal environments ️

  • Windows: PowerShell, Command Prompt, Git Bash

  • macOS: Terminal (standard app), iTerm2, etc.

  • Linux: Standard terminal

Especially when learning GitHub, Git Bash (Windows) and macOS/Linux standard terminal are commonly used.

Actual usage scenarios on GitHub ️

Example: The process of cloning a repository
# GitHub上のプロジェクトを取得
git clone https://github.com/ユーザー名/リポジトリ名.git
cd リポジトリ名
ファイルを編集したあと
git add .
git commit -m "初めてのコミット"
git push origin main

This entire sequence of operations is performed from the terminal.

Key points for beginners to remember ✨

  • "Terminal = A place to enter commands on a black screen"

  • GitHub operations (clone, commit, push) are basically executed from the terminal

  • For Windows, "Git Bash" is fine; for macOS/Linux, the "standard terminal" is fine

  • At first, it is enough to just copy and paste commands

Summary

  • The terminal is an operation screen for entering GitHub and Git commands

  • The shell (bash, etc.) is the engine running inside it

  • Beginners can just understand it as "Terminal = A window to talk to GitHub"

Once you get used to it, your work efficiency will increase dramatically, so please give it a try!

*This article was created based on responses from ChatGPT.

同じカテゴリの記事

東條 淳平

スポーツと芸能が交差する話題を担当。大会公式記録と所属先の発表を突き合わせ、数字は必ず出典付きで扱います。

おすすめの関連記事