Git

초급 04. Add와 Commit

· 1min read · 1 views

 

변경 확인

git status
git diff

 

Staging

git add src/
git add file.ts
git add .

 

Commit

git commit -m "feat: 로그인 기능 추가"

 

Commit History

git log --oneline
git log --oneline --graph --decorate --all

commit은 Remote에 업로드하는 작업이 아닙니다. Commit은 먼저 Local Repository에 기록되고, Remote 업로드는 별도의 push가 담당합니다.

Related Docs

Comments (0)

No comments yet. Be the first to comment!

Leave a Comment

로그인 후 댓글을 남길 수 있습니다.