일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- springboot
- Design Patterns
- Gradle
- ReactJS
- MySQL
- it
- tool
- Git
- 맛집
- elasticsearch
- AWS
- javascript
- JVM
- Spring Batch
- 요리
- php
- jenkins
- Spring
- Spring Boot
- db
- Oracle
- ubuntu
- linux
- Web Server
- java
- redis
- IntelliJ
- laravel
- devops
- jsp
Archives
- Today
- Total
아무거나
[git] 작업도중 임시로 저장해 두고 다른 branch에서 작업하고 싶을때 사용하는 명령(git stash) 본문
반응형
- 작업도중 임시로 저장해 두고 다른 branch에서 작업하고 싶을때 사용하는 명령(git stash)
- 하던 작업 stash 저장
$ git stash
- stash 목록을 확인
$ git stash list
- stash 적용
// 최근 저장된 stash 으로 적용 $ git stash apply // 원하는 stash의 버전으로 적용 $ git stash apply {stash 버전명} // index 옵션을 적용하면 staged 상태였던 파일들까지 자동으로 다시 staged 상태까지 복원시켜준다. $ git stash apply --index
- 임시 저장된 stash 제거
// 최근 저장된 stash 제거 $ git stash drop // 원하는 stash의 버전으로 제거 $ git stash drop {stash 버전명}
- 적용과 동시에 적용한 stash를 제거
// apply + drop $ git stash pop
- 하던 작업 stash 저장
반응형
'Infra > Git & SVN' 카테고리의 다른 글
[gitlab] Merge Requests 할 때 승인자 지정 (0) | 2022.10.05 |
---|---|
[Gitlab] Merge Requests 할 때 Description 영역에 작성 템플릿 적용 (0) | 2022.07.19 |
[git] Git Commit Template 설정 (0) | 2020.06.02 |
[gitlab] You can only use an existing protected branch ref as the basis of a new protected branch. (0) | 2020.01.05 |
[git] commit or discard the untracked or modified content in submodules (0) | 2019.10.26 |
Comments