I’m working with a simple HTML file and trying to make a first commit.
I created a new repository in GitHub and on CMD, I typed:
git init
git add .
git status
git commit -m “First Commit”
git remote add origin (pasted the url from the repository)
git push -u origin master
(Then, I’m asked to type in my Username and Password)
Here, I fill in my Username and paste in my personal token from GitHub website. It’s because I have had trouble with the Username and the Password and heard that the personal token would help.
I personally used to use the above manual steps to setup the machine I plan on using, however with the release of the github-cli, I usually install that, and let it setup my ssh keys to my account. It just does the same “manual steps” for you, with sensible defaults and less complexity.
With those checks, odds are your ssh key might not be setup properly, which means you’ll probably have to re-generate/re-upload it again to your profile. (see above guides on details for each of those steps).
Alternatively you could install the github-cli and let it walk your system through setting it up.
I see your github repo exists, but is empty. This should make things easy, as it provides information on how to get things deployed to the repo, leaving just any related ssh key issues.
note github used to support non-ssh setup, but I’m not sure if this supported anymore, last I checked it was deprecated/being removed? I’d highly suggest always using ssh based authentication methods over any other method (like username and password). Its more secure, less error prone, and integrates with all systems pretty well.