don't do partial commits instead use a git stash command code example Example: git stash clean command git stash clear