Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I upload committed changes to my GitHub repository?

Tags:

git

github

commit

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?

like image 499
Akhmed Avatar asked Aug 11 '11 15:08

Akhmed


People also ask

How do I push changes to my repository?

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.

How do I add a commit to a repo?

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.


1 Answers

Follow this steps:

1. cd /project path
2. git add *
3. git commit -m "Enter commit message here"
4. git push
like image 79
urvashi bhagat Avatar answered Sep 28 '22 03:09

urvashi bhagat