Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- NPM
- MSK
- Generics
- python
- Let's Encrypt
- 함수형프로그래밍
- typescript
- nestjs
- https
- Express
- ChatGPT
- docker
- nodeJS
- Certbot
- Functional Programming
- Linux
- Schema Registry
- 파이썬
- 자료구조
- stream
- html
- vscode
- javascript
- GIT
- 비주얼 스튜디오 코드
- ES6
- V8
- node.js
- 알고리즘
- MSA
Archives
- Today
- Total
목록commit (1)
JangBaGeum.gif
commit 메시지를 잘못 입력했거나, 혹은 디버깅용 코드를 포함하거나 간단한 실수를 코드에 포함하여 commit 하였을 때, 어떻게 대처를 해야 될까? git reset -soft를 통해 commit을 삭제 후 다시 commit을 하는 방법도 있지만 더 예측 가능하면서 안전하게 직전 commit을 수정하는 방법이 있다.바로 git commit의 옵션 중 --amend 옵션이다. commit 메시지 수정하기직전 commit의 메시지를 수정하려면 아래와 같이 git commit에 --amend 옵션을 사용하면 된다.$ git commit --amend 만약 아래와 같이 마지막 commit 메시지를 "4th commit"으로 작성하려고 했는데, 실수로 "5th commit"으로 작성했다고 가정해 보자.git..
ETC/Git
2024. 11. 3. 19:20