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
- Mac
- 네트워크
- import
- xargs
- web.xml
- VirtualBox
- Eclipse
- tomcat
- plugin
- context
- 줄바꿈 문자
- Windows
- vscode
- ssh
- resource
- IntelliJ
- JavaScript
- maVen
- port
- 단축키
- Quartz
- bash
- Windows 10
- profile
- grep
- netsh
- lsof
- find
- GIT
- Source
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