git에서 스테이지되지 않은 변경 사항의 일부를 실행 취소하지만 나머지는 스테이지되지 않은 상태로 유지하려면 어떻게합니까? 내가 알아 낸 방법은 다음과 같습니다.
git commit --interactive
# Choose the parts I want to delete
# Commit the changes
git stash
git rebase -i master # (I am an ancestor of master)
# Delete the line of the most recent commit
git stash apply
이것은 효과가 있지만 git commit --interactive변경 사항을 되 돌리는 것과 같은 것이 있으면 좋을 것 입니다. 더 나은 방법이 있습니까?