› Spec
CPU: Apple M1 or Intel i5
RAM: 8GB
Storage: 256GB SSD
OS: macOS or Windows 11
Python: 3.11.5 and 3.8.7
Python_venv_path: Only /desktop/[folder]
IDE: Visual Studio Code
› Home › About › Archive › Categories › Guestbook

Categories : Git

Git 푸시 전 마지막 커밋 메시지 수정


  1. 마지막 커밋 메시지 수정
    1. 1. 마지막 커밋 메시지 수정
    2. 2 . 변경사항 푸시

마지막 커밋 메시지 수정

1. 마지막 커밋 메시지 수정

git commit --amend

편집기가 열리고, 커밋 내용을 수정할 수 있다.
수정 후 종료하면 메시지가 변경된다.

2 . 변경사항 푸시

git push --force

편집기를 사용한다면, 그대로 푸시해도 됨.


확대 이미지