I am on git version 2.46.0.windows.1 Login to the account you wish to push your code to
This creates/updates C:\Users<your_user_name>.gitconfig file with name, email, and password. Make sure you do not share this file as it has credentials.
Login to your GitHub account in the browser and create a new repository
Follow the instructions to add a sample file README.md into your repo and push the desired files