알잘딱깔센GitHub - stash mode 소개

prana·2023년 3월 21일
0

출처 : 알잘딱깔센GitHub - stash mode 소개 (69p)

  • 이전 내용이라 바뀐 것이 있을지도!
  • git stash # 저장하기

  • git stash save [description] # 설명 추가하면서 저장하기

  • git stash list #stash 리스트 보여주기
# stash@{0} : WIP on main 06c4e12 test <- 이런 식으로 stash의 목록을 보여준다.

  • git stash apply # 가장 최근 stash 가져와 적용 (stash에서 삭제는 안 됩니다.)

  • git stash apply --index # staged된 상태까지 적용하고 싶은 경우


  • git stash drop # 가장 최근 stash 내용 삭제

  • git stash drop stash@{숫자} #해당하는 친구 삭제


  • git stash pop #위에 있는 apply 와 drop을 합친 키워드
    • 가장 최근 stash 내용 적용 및 삭제

  • git stash clear #전체 삭제
profile
안녕하세요!!

0개의 댓글