Reputation:
I have cloned my live site repo locally so that I can view and work on my site fully. Now I've done a bunch of changes, tested my site, and committed them. What do I need to do to reflect just the committed changes back to my live site?
I've read about push and merge but could only get as far as knowing that merge is related to branches/forks and that my case is not that. I've cloned the repo.
Upvotes: 0
Views: 294
Reputation: 10402
Using git push origin <branch>
is exactly what you want to do to push your changes back to the origin (the URL you cloned your local repository from). For example if you are working on the branch master
(verify this by typing git branch
) you can use the command git push origin master
.
The name origin
is the default name for the repository you cloned from but can be changed. See .git/config
inside your repository for other potentially registered remotes you can pull from and push to.
Upvotes: 1