Using checkout like that will only work if you haven't staged or committed those changes yet. But you can use checkout to help you revert the change.

```
git checkout master src/freeseer/frontend/qtcommon/resource.py   # resets the file to the state it's in inside your master branch
git diff --staged  # review that the changes undo the changes you made to the autogenerated file
git add src/freeseer/frontend/qtcommon/resource.py
git commit -m "Revert changes I accidentally made to autogenerated file"
git rebase -i master
# In the interactive screen, move your most recent commit right below the commit that introduced the accidental changes ([this commit](https://github.com/LCdevelop/freeseer/commit/f1faaba592e019e5cc1f31ddd15241351195bccc)). You can cut and paste the line to move it.
# For the commit that will fix the changes, change the word at the front of the line from "pick" to "f" or "fixup"
# Save and quit, the rebase should apply the changes and the resource.py file will no longer contain the empty lines you added in f1faaba592e019e5cc1f31ddd15241351195bccc
# Force push your changes to GitHub
```