How to update or commit code changes from local github repository to repository on github

A user can make changes to code in their local folder (in this case, MumbaiStock) and then update or commit  that code into the github repository.

Below is the user information:
github User ID is userid
github User Name is “UserFirstName UserLastName”
github User Email is “user@emailsystem.com”

To update github or commit code from the local repository to that on github, open a terminal window and do the following:
$ cd ~/MumbaiStock <enter>
$ git config –global user.name “UserFirstName UserLastName” <enter>
$ git config –global user.email “user@emailsystem.com” <enter>
$ git commit MumbaiStock.pm -m v1.5 <enter>
$ git push <enter>

git push will publish the local changes to the repository after you enter your github user ID and password when prompted.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s