When you make a commit to a wrong branch and you need to undo it.
Get the filename and directory path of a Python script in the file system using the __file__ variable and the os module.
__file__
os