I used clone to create a local copy of my repository on GitHub.
I modified a few files. Then I did:
git commit -a
And now I want to save my committed changes to the GitHub repository.
How can I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You push your changes:
Replace
masterwith the name of the branch you want to push, if different from master.In case the branch was updated since your last update, the changes may be rejected. In that case you have to pull the latest changes on the remote branch first:
Optionally, you can rebase your changes on top of the remote master (this will prevent a merge commit), by using: