Restoring your changes
$ echo oops >> hello.py
$ git status -sb
# ## main
# M hello.py
$ git restore hello.py
$ git status -sb
# ## main$ echo oops >> hello.py
$ git add hello.py
$ git status -sb
# ## main
# M hello.py
$ git restore --staged hello.py
# ## main
# M hello.py
$ git restore hello.py
$ git status -sb
# ## mainLast updated