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

  

  

  

Blue Captcha Image
Refresh

*

June 2019
M T W T F S S
« Feb    
 12
3456789
10111213141516
17181920212223
24252627282930