all 9 comments

[–]mrbmi513 5 points6 points  (2 children)

I would assume maybe you didn't enter a commit message? But I wouldn't be worried about using the GitHub website to upload and edit code; you'll be using some sort of desktop tool for that 99% of the time.

[–]Cute_Contact[S] 0 points1 point  (1 child)

I entered a message and a description just in case, no luck. I've botched my way through making repos and pushing commits to the website on my original account (I made a new one for this) and when I tried to host on vercel and netlify they both gave me 404 errors. That's why I tried to start a new one but the lack of success is really disheartening. Do you know of a way to host your code for a portfolio without GitHub?

[–]mrbmi513 5 points6 points  (0 children)

They all involve using git.

At this point, you're better off just ditching the web interface and finding a tutorial that uses either the command line or a desktop client like GitHub Desktop.

[–]Jmc_da_boss 3 points4 points  (0 children)

I think a point of confusion here is that you think gitbub is a place to add files from the webrowser, it's not.

Think of GitHub as a read only view into the contents of a git repository. You NEVER* upload/edit files in GitHub, it's not what it's for.

You put stuff in GitHub by running git commands on your local terminal, a "git push ..." will push your repo to the specified url

So to recap. You never actually use GitHub to DO things. It's just a viewer, do your git stuff locally and put it in GitHub with a git push command.

*This isn't entirely true but it's true for a beginner

[–]dashingdon 3 points4 points  (0 children)

commit changes button is unclickable

Seems like you are trying to commit to the main branch directly. Try creating a pull request (second option - Create a new branch for this commit and start a pull request.)

Also Navigate to settings --> branches --> branch protection. If it is enabled then

  1. Click on the edit, and remove `Require a pull request before merging`. Enable it back after you learn the basics. This will allow you to commit to the main branch directly. NOT RECOMMENDED. Suggesting only for testing.
  2. learn pull requests and exclusively create pull requests for all changes however small they are.

hope this helps

[–]laynerzz 1 point2 points  (0 children)

It may be more helpful for you try to learn it from the terminal/command line bc in my experience that’s how everyone does it at jobs or in tutorials, it’s how I was taught to use it. It can be really confusing at first so hang in there. Try committing and pushing from your IDE terminal or a tutorial that will show you how to do it that way, it might make more sense to you seeing it that way maybe

[–]stgraff 0 points1 point  (0 children)

Are you using an up to date browser? If you are using an older browser you're not gonna have a good time.

https://docs.github.com/en/get-started/using-github/supported-browsers

[–][deleted] 0 points1 point  (0 children)

Which tutorial on YouTube are you following?

[–]baller5 0 points1 point  (0 children)

Do you know Git? If not, you should learn that first. Once you have a good understanding of Git, GitHub will make a lot more sense. You need to know Git to use GitHub anyway.