--subdirectory-filter --index-filtergit filter-branch -f --index-filter 'git rm --cached --ignore-unmatch 삭제하고자하는 file명' --prune-empty -- --allgit push --force --all
아직 마무리 하지 않은 일을 잠시 스택에 저장할 수 있도록 하는 명령어
이를 통해 아직 완료하지 않은 일을 commit 하지 않고 나중에 다시 꺼내와 마무리 할 수 있다.
git stash 명령을 사용하면 워킹 디렉토리에서 수정한 파일들만 저장한다.
stash란 아래에 해당하는 파일들을 보관해두는 장소이다.
git stash 나 git stash savegit stash list git stash applygit stash apply stash이름 git stash apply --indexgit stash dropgit stash pop git stash show -p | git apply -Rgit stash show -p stash이름 | git apply -Rgit config --global alias.stash-unapply '!git stash show -p | git apply -Rgit stash-unapply 로 사용하면 된다.git reset 이나 git reset 으로 커밋을 삭제해 버렸다.
git reflog git reset --hard 커밋id git reflog 또는 git reflog |grep 브랜치명 으로 log확인git checkout -b <삭제한 브랜치명> <커밋해시id>필요 상황

git add .git commit --amenda 를 눌러 add 모드 로 변경:wq 로 변경사항 저장하고 나오기
