-1

how do I initialise version control of a repository on GitHub using git? I am new to GitHub and git. have been searching for tutorial online but I don't really find one that could help.

I have installed git on my terminal and tried running some git commands on terminal but I don't really get what it actually do to the GitHub repository. can you initialise version control of a GitHub repository using git? if yes, how to do so?

4
  • Does this answer your question? Create a GitHub repository from command line Commented May 27, 2024 at 12:44
  • Yes but I still can't connect my GitHub with the local repository. I tried the push origin command. but unfortunately I can't get pass the authentication. the warning said remote: Support for password authentication was removed on August 13, 2021. Commented May 27, 2024 at 12:55
  • That too is a very common FAQ; please search before asking, if only to see what a well-formed question with adequate debugging details looks like. Commented May 27, 2024 at 12:57
  • yeah I just fixed it. thanks for the help Commented May 27, 2024 at 12:58

1 Answer 1

0

Hey i too started using git recently..

I tried this and it was helpful.

  1. I Created a GitHub Repository.
  2. I then cloned the repository.
  3. Then initialized Git in local repositary
  4. Now i was able to Link the Local Repository to GitHub
  5. After this, i added and commited files in repo using git add and git commit commands.
  6. Post then using git Push command, i pushed changes to Git.

Have you tried this? let me know if it worked for you.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.