commit

GIT commit

2022. 6. 21. 22:02
반응형

commit

  • 작업 중인 파일 내역 저장 (원격 저장소 push 전 수행)
  • 작업시 기능 단위로 나눠서 #commit 하면 코드 리뷰 시 리뷰어가 보기 편함
git commit -m "commit init"
git commit --amend  //message vi 모드
git commit --amend -m "메세지 변경"  //message 변경
git reset HEAD^ or git reset {commit id} //local commit 취소
git commit --allow-empty -m "empty commit"  //empty commit
반응형

'Infra > git' 카테고리의 다른 글

GIT rebase  (0) 2022.06.21
GIT push  (0) 2022.06.21
GIT stash  (0) 2022.06.21
GIT clean  (0) 2022.06.21
GIT restore  (0) 2022.06.21

+ Recent posts

반응형