How to commit to a GIT repository

This is how to push back code into the repository for others to use.

From the dome directory

git add -all    							% to update every file in the local repository
git add -filename 							% to update only one file in the local repository
git commit -a -m 'your comment here'
git push origin master 						% to push the updated local repository into the master repository for other to use

 

If you already have the files in the local repository you just need the commands:

git commit -a -m 'your comment here'
git push origin master 						% to push the updated local repository into the master repository for other to use