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 |
Tags
- xargs
- port
- resource
- netsh
- maVen
- 단축키
- Windows
- profile
- find
- ssh
- 줄바꿈 문자
- Source
- web.xml
- import
- tomcat
- Eclipse
- IntelliJ
- Windows 10
- plugin
- lsof
- Mac
- JavaScript
- Quartz
- GIT
- grep
- vscode
- 네트워크
- context
- VirtualBox
- bash
Archives
- Today
- Total
develog
[git] revert 본문
특정 커밋 내용을 취소하고 로그를 남긴다
- revert 실행 전
$ git log --oneline
0a2d818 (HEAD -> master) add section 2
6ced8d4 add section
49e50c8 change title ## revert 할 커밋
26d36a0 add index.html
$ git status
On branch master
nothing to commit, working tree clean
- revert 실행
$ git revert 49e50c8
- revert 실행 후
$ git log --oneline
b9cefd0 (HEAD -> master) Revert "change title" # revert 한 로그가 남는다
0a2d818 add section 2
6ced8d4 add section
49e50c8 change title
26d36a0 add index.html
## status 는 변화가 없다
$ git status
On branch master
nothing to commit, working tree clean
'Dev > git' 카테고리의 다른 글
[git] clone vs fork (0) | 2022.04.03 |
---|---|
[git] reset (0) | 2022.04.03 |
[git] checkout commit (0) | 2022.04.01 |
[git] master >R> (0) | 2022.03.31 |
[git] github commit 메시지 수정 (0) | 2022.03.14 |
Comments