What is Github?
GitHub is a web-based hosting service for projects that use the Git revision control system, just like subversion. Just follow these simple steps and your repos will go “on the fly” and its very simple using command prompt.
Hate command line? Check GITHUB FOR DUMMIES – USING SOURCETREE AND SMARTGIT
Steps to commit Git repository to github:
1) Download and install Git Command line interface.
2) Right click the folder you want to add. Click Git init. You will see a .git folder.
3) Right click and click git bash
4) Type ‘git add .’ it will add all files to git.
5) Type git commit –m “Commit message”
6) Type git remote add origin “path to github repository”
7) Type “git push –u origin master”. It will ask for Github credentials and commit the folder to online github repository.
Other useful commands:
Git pull – It will pull files from remote or online repo Git clone ‘path to github repository’ – Checking out a repository
Note: Use ‘git push –u origin +master’ for forced commit.