Last Sync: 2025-12-23 00:26 (Mobile)
This commit is contained in:
@@ -80,5 +80,45 @@ git branch -D exp
|
||||
|
||||
# reset, branch 과거로 돌아가기
|
||||
```
|
||||
git reset --hard [해시값]
|
||||
```
|
||||
```
|
||||
git reflog
|
||||
```
|
||||
>방금전 실행한 명령어 로그
|
||||
|
||||
```
|
||||
git reset ORIG_HEAD
|
||||
```
|
||||
> 되돌리기
|
||||
|
||||
```
|
||||
git checkout [해시값]
|
||||
```
|
||||
|
||||
| 구분 | 1 | 2 | 3 |
|
||||
| --- | ---------------------------------------------------------- | -------------------------------- | ------------------------------- |
|
||||
| 용어 | working directory, <br> working tree <br> working copy<br> | index<br> staging area<br> cache | repository<br> history<br> tree |
|
||||
| 명령어 | | | git reset --soft |
|
||||
| | | git reset --mixed | git reset --mixed |
|
||||
| | git reset --hard | git reset --hard | git reset --hard |
|
||||
| | | | |
|
||||
```
|
||||
git log -p
|
||||
```
|
||||
>로그자세히 보기
|
||||
|
||||
```
|
||||
git diff
|
||||
```
|
||||
>문서의 다른점 보기(index와 working copy 차이점)
|
||||
|
||||
# merge, conflict
|
||||
```
|
||||
git config --global merge.tool kdiff3
|
||||
```
|
||||
> 병합을 전문적으로 하는 툴
|
||||
|
||||
```
|
||||
git mergetool
|
||||
```
|
||||
Reference in New Issue
Block a user