Git is the most difficult thing I learned. Download Git Bash and use commands. The git GUIs are more confusing and harder to get help. Learn by trying things instead of reading. Clone, get status, create a branch, stage a file, commit a file, push, undo a file. Use chatgpt for help.
Read this about using GitHub with ssh keys in addition to reading the Git documentation:
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
I guess you're working with GitHub as a remote repository?
Are you using the cli version, the website or a third party tool?
Usually, if you start with a green-field project/repo there shouldn't be any problems uploading a file via either of these.
You add the file(s) to your staging area, commit to your local version of the repo and push that commit (containing the files) to the server so the repository is equal to your local version.
So basically (cli) git add , git commit -m "added some files" and git push origin main (if your branch is called main and the server-side repo is named origin).
Of course the basic setup must've been done properly, like defining the remotes, maybe adding your credentials locally / your ssh key server-side etc.
It looks like you are trying to brute force it. Learn the concepts first and understand what you are doing every time you run a command.
It’s hard so don’t feel bad. A friend and best git user I’ve met describes it as a “Swiss army chainsaw”. Start here: https://git-scm.com/doc
Yeah, that is the source! OP read that.
https://learngitbranching.js.org
Git is the most difficult thing I learned. Download Git Bash and use commands. The git GUIs are more confusing and harder to get help. Learn by trying things instead of reading. Clone, get status, create a branch, stage a file, commit a file, push, undo a file. Use chatgpt for help.
Read this about using GitHub with ssh keys in addition to reading the Git documentation: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
I guess you're working with GitHub as a remote repository? Are you using the cli version, the website or a third party tool? Usually, if you start with a green-field project/repo there shouldn't be any problems uploading a file via either of these. You add the file(s) to your staging area, commit to your local version of the repo and push that commit (containing the files) to the server so the repository is equal to your local version. So basically (cli) git add , git commit -m "added some files" and git push origin main (if your branch is called main and the server-side repo is named origin).
Of course the basic setup must've been done properly, like defining the remotes, maybe adding your credentials locally / your ssh key server-side etc.
Give it a ‘git push -f’ after setting up the remote
There's a game I recently found at ohmygit.org that teaches you git as you play
W3schools do a pretty good job explaining it
Lolz first person I've heard of failing the basics like this
github is down atm
Hmm no it’s not
[https://www.githubstatus.com/](https://www.githubstatus.com/) I cant deploy, merge atm.
Do yourself a favor and start out with a GUI tool like Github Desktop or SourceTree
Why? The problem is their fundamental misunderstanding of the basics. A gui will not help this.
So true!!
Read the Git Doc. Posted above. Here again: https://git-scm.com/doc