Skip to main content

Git 설치

Git은 소스코드 버전 관리를 위한 기본 도구입니다.

사전 준비

  • Ubuntu 24.04
  • sudo 권한

설치 과정

1

패키지 목록 업데이트

sudo apt update
2

Git 설치

sudo apt install -y git
3

기본 사용자 정보 설정

git config --global user.name "YOUR_NAME"
git config --global user.email "YOUR_EMAIL@example.com"
git config --global init.defaultBranch main

설치 확인하기

git --version
git config --list --global

문제 해결

  • 구버전 Git 설치됨: sudo apt update 후 다시 설치하세요.
  • 이메일/이름 오타: git config --global --edit로 수정하세요.