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?
To push changes from the current branch press Ctrl+Shift+K or choose Git | Push from the main menu. To push changes from any local branch that has a remote, select this branch in the Branches popup and choose Push from the list of actions.
To push the commit from the local repo to your remote repositories, run git push -u remote-name branch-name where remote-name is the nickname the local repo uses for the remote repositories and branch-name is the name of the branch to push to the repository. You only have to use the -u option the first time you push.
Follow this steps:
1. cd /project path
2. git add *
3. git commit -m "Enter commit message here"
4. git push
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With