2026-01-24

git init으로 저장소 시작

로컬 저장소를 시작하는 init 흐름을 정리합니다.

Rhio Kim

Rhio Kim

CEO

#git#init

Page reactions

Leave a quick reaction to this shorts.

반응을 불러오는 중...

!!steps

!duration 200

!

_10
# 디렉토리 생성
_10
$ mkdir my_project

!!steps

!duration 150

!

_10
$ mkdir my_project
_10
_10
# 디렉토리 이동
_10
$ cd my_project

!!steps

!duration 200

!

_10
$ mkdir my_project
_10
_10
$ cd my_project
_10
_10
# 파일 생성
_10
$ echo "# My Project" > README.md

!!steps

!duration 150

!

_10
$ mkdir my_project
_10
_10
$ cd my_project
_10
_10
$ echo "# My Project" > README.md
_10
_10
# 디렉토리 파일 목록 확인
_10
$ ls

!!steps

!duration 150

!

_10
$ mkdir my_project
_10
_10
$ cd my_project
_10
_10
$ echo "# My Project" > README.md
_10
_10
# 디렉토리 파일 목록 확인 결과
_10
$ ls
_10
README.md

!!steps

!duration 250

!

_11
$ mkdir my_project
_11
_11
$ cd my_project
_11
_11
$ echo "# My Project" > README.md
_11
_11
$ ls
_11
README.md
_11
_11
# `git status` 실행
_11
$ git status

!!steps

!duration 300

!

_13
$ mkdir my_project
_13
_13
$ cd my_project
_13
_13
$ echo "# My Project" > README.md
_13
_13
$ ls
_13
README.md
_13
_13
# `git status` 실행
_13
$ git status
_13
fatal: not a git repository (or any of the parent
_13
directories): .git

!!steps

!duration 200

!

_10
# `git init` 실행
_10
$ git init

!!steps

!duration 300

!

_10
# `git init` 실행
_10
$ git init
_10
Initialized empty Git repository in
_10
/path/to/my_project/.git/

!!steps

!duration 200

!

_10
$ git init
_10
Initialized empty Git repository in
_10
/path/to/my_project/.git/
_10
_10
# 숨김 파일 포함 디렉토리 목록 확인
_10
$ ls -a

!!steps

!duration 250

!

_10
$ git init
_10
Initialized empty Git repository in
_10
/path/to/my_project/.git/
_10
_10
# 숨김 파일 포함 디렉토리 목록 확인 결과
_10
$ ls -a
_10
.
_10
..
_10
.git
_10
README.md

!!steps

!duration 200

!

_12
$ git init
_12
Initialized empty Git repository in
_12
/path/to/my_project/.git/
_12
_12
$ ls -a
_12
.
_12
..
_12
.git
_12
README.md
_12
_12
# `git status` 실행
_12
$ git status

!!steps

!duration 400

!

_23
$ git init
_23
Initialized empty Git repository in
_23
/path/to/my_project/.git/
_23
_23
$ ls -a
_23
.
_23
..
_23
.git
_23
README.md
_23
_23
# `git status` 실행 결과
_23
$ git status
_23
On branch main
_23
_23
No commits yet
_23
_23
Untracked files:
_23
(use "git add <file>..." to include in
_23
what will be committed)
_23
README.md
_23
_23
nothing added to commit but untracked files
_23
present (use "git add" to track)