0

I'm learning to use Git and GitHub. I tried to do my first remote repository in my windows version of Git git version 2.32.0.windows.1. I followed the next instructions:

  1. mkdir git_practice to make a new directory to practice.
  2. cd git_practice to make the new directory your working directory.
  3. git init to turn the current, empty directory into a fresh Git repository.
  4. echo "Hello Git and GitHub" >> README.txt to create a new README file (more on this later) with some sample text.
  5. git add README.txt to add the new file to the Git staging area.
  6. git commit -m "First commit" to make your first commit with the new README file.

Once I've done that. I follow the instructions on my GitHub repository to push an existing repository from the command line.

  • git remote add origin https://github.com/Glamerstone/Practice.git
  • git branch -M main
  • git push -u origin main

But once I call the last command it keeps like loading and don't do anything.

I really hope someone can help me.

  • It sounds like you need to authenticate. https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token – evolutionxbox Jun 24 '21 at 16:45

0 Answers0