How do you push changes to your GitHub page without deleting everything and re-uploading it?

As the title hints, I’m a complete noob at git.

Right now the way I’ve been updating my github page site is by deleting the repository, then making a new one with the new website contents.

I figure there has to be a more efficient way to just push the changes there, but I can’t figure out how to do it.

1 Like

Hello @sphericalsilver,

You want to update the master branch, correct? If so, you should be able to run  git push origin master to push your local changes to your online repository. The following page has more info on git push.

Another alternative is to use GitHub Desktop. With this you can clone your repository to your local system, make changes, and then commit and push these changes to your online repository. This the method I use to update my GitHub pages.


Thank you, that’s really helpful!

1 Like