-
Create Python environment
-
Select the Python interpreter
-
Extensions for Python
-
Install remote repositories extension depending on the version of VS and follow the instructions. I didn't have to
-
Click on source control --> write commit message --> ... tab select push. As long as the GitHub repo is configured to the local folder