Execute 'git status'. Your terminal should show something like this:
$ git status On branch master Changes not staged for commit: modified: shop/admin.py deleted: shop/views2.py Untracked files: shop/visitor.py
There are two type of changes:
To undo all work since the last commit, perform these two commands:
git reset --hard git clean -fd
Execute git status again. Your terminal should show something like this:
$ git status On branch master nothing to commit, working tree clean
And all is good again.