The simplest starting point is usually to clone the GitHub repository into a new folder on your computer. Pick a location you can find again, then open that cloned folder in VS Code. Cloning sets up a local repository and connects it to the GitHub repository as a remote.
Copy hello.py from your existing codes folder into the cloned folder. Now edit the copy in the cloned folder, stage it, commit it, and push. You can do those steps through VS Code's source control interface or with Git commands. You don't need to drag the file onto the website each time.
That copy and the original in codes will be separate files. Once you've checked everything is where you want it, use one folder as your working folder so you don't accidentally edit the other copy.
28v+tram_64:
If there are two files named hello.py, their folder paths tell you which one you're editing. The name alone isn't enough.