79140324

Date: 2024-10-30 08:59:22
Score: 0.5
Natty:
Report link

I am on git version 2.46.0.windows.1 Login to the account you wish to push your code to

  1. git config --global user.name "<your_username>"
  2. git config --global user.password <account_password>
  3. git config --global user.email <optional_email> Step 3 is optional

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

enter image description here

Follow the instructions to add a sample file README.md into your repo and push the desired files

enter image description here

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Prashanth