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
- GIT
- Source
- Eclipse
- grep
- Quartz
- xargs
- Windows 10
- resource
- VirtualBox
- web.xml
- 줄바꿈 문자
- tomcat
- lsof
- import
- context
- plugin
- 네트워크
- profile
- find
- JavaScript
- bash
- port
- IntelliJ
- 단축키
- ssh
- Windows
- netsh
- vscode
- Mac
- maVen
Archives
- Today
- Total
develog
[git] 현재 branch 의 변경 내용을 모두 rollback 본문
## stage 된 파일들을 모두 unstage 한다
$ git restore --staged .
## unstage 된 파일들의 변경내용을 초기화한다
$ git restore .
## untracked file 을 삭제한다
$ git clean -fd
## untracked file 을 삭제하기 전에 먼저 리스트를 확인한다
$ git clean -fd -n
'Dev > git' 카테고리의 다른 글
[git] merge (0) | 2021.12.22 |
---|---|
[git] reset, 커밋 취소 (0) | 2021.10.26 |
[git] merge vs merge --no-ff vs merge --squash vs rebase (0) | 2021.10.26 |
git commit 취소 (0) | 2021.08.25 |
[git] diff (0) | 2021.08.09 |
Comments