Skip to content

How can I update my github repository from my local computer? #7916

Discussion options

You must be logged in to vote

Hey, @Danogbans,

I have made the changes in the original project in my local machine and now, I am trying to push these changes to the github repository in order to update the already existing project. Is there any other way I could do this or can I make the changes and commit it directly on github without cloning the repository?

Yes, you can do it. Set the remote URL in Git and push the code. Just make sure you have the same commit head, otherwise, it won't let you push.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Danogbans
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants