2026-01-24

git push로 변경 배포

원격 저장소에 변경을 올리는 push 흐름을 정리합니다.

Rhio Kim

Rhio Kim

CEO

#git#push

Page reactions

Leave a quick reaction to this shorts.

반응을 불러오는 중...

!!steps

!duration 180.0

!

_12
# 현재 작업 디렉토리의 상태를 확인
_12
$ git status
_12
On branch main
_12
Changes not staged for commit:
_12
(use "git add <file>..." to update what will be
_12
committed)
_12
(use "git restore <file>..." to discard changes in
_12
working directory)
_12
modified: example.txt
_12
_12
no changes added to commit (use "git add" and/or "git
_12
commit -a")

!!steps

!duration 90.0

!

_15
# 현재 작업 디렉토리의 상태를 확인
_15
$ git status
_15
On branch main
_15
Changes not staged for commit:
_15
(use "git add <file>..." to update what will be
_15
committed)
_15
(use "git restore <file>..." to discard changes in
_15
working directory)
_15
modified: example.txt
_15
_15
no changes added to commit (use "git add" and/or "git
_15
commit -a")
_15
_15
# 변경된 파일을 스테이징 영역에 추가
_15
$ git add example.txt

!!steps

!duration 120.0

!

_10
# 변경된 파일을 스테이징 영역에 추가
_10
$ git add example.txt
_10
_10
# 스테이징된 변경사항을 커밋
_10
$ git commit -m "Update example.txt"
_10
[main 6f3e247] Update example.txt
_10
1 file changed, 1 insertion(+)

!!steps

!duration 180.0

!

_16
# 스테이징된 변경사항을 커밋
_16
$ git commit -m "Update example.txt"
_16
[main 6f3e247] Update example.txt
_16
1 file changed, 1 insertion(+)
_16
_16
# 로컬 변경사항을 원격 저장소의 main 브랜치로 푸시
_16
$ git push origin main
_16
Enumerating objects: 5, done.
_16
Counting objects: 100% (5/5), done.
_16
Delta compression using up to 8 threads
_16
Compressing objects: 100% (2/2), done.
_16
Writing objects: 100% (3/3), 284 bytes | 284.00 KiB/s,
_16
done.
_16
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
_16
To https://github.com/username/repository.git
_16
fe5b5e0..6f3e247 main -> main

!!steps

!duration 150.0

!

_18
# 로컬 변경사항을 원격 저장소의 main 브랜치로 푸시
_18
$ git push origin main
_18
Enumerating objects: 5, done.
_18
Counting objects: 100% (5/5), done.
_18
Delta compression using up to 8 threads
_18
Compressing objects: 100% (2/2), done.
_18
Writing objects: 100% (3/3), 284 bytes | 284.00 KiB/s,
_18
done.
_18
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
_18
To https://github.com/username/repository.git
_18
fe5b5e0..6f3e247 main -> main
_18
_18
# 푸시 후 작업 디렉토리 상태 재확인
_18
$ git status
_18
On branch main
_18
Your branch is up to date with 'origin/main'.
_18
_18
nothing to commit, working tree clean