how to discard unmerged file git code example Example: git discard unstaged files git stash save --keep-index --include-untracked