Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 3

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

Solved! Go to Solution.

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.

2 Replies
Highlighted
Solution
Pilot Lvl 1
Message 2 of 3

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

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.

https://help.github.com/en/articles/pushing-commits-to-a-remote-repository

 

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.

Copilot Lvl 2
Message 3 of 3

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

Thank you, that's really helpful!