Many time we need to use some version control system.GitHub is a web-based hosting service for projects that use the Git revision control system.It is written using Ruby on Rails by GitHub,Inc.
For Initial Setup of your account and repository , you can use https://github.com/ using the graphical web interface you can simply create account and repository.
We can also create Repository using command line using the Github API.
Start using Git :
- Open command prompt or teminal in linux
- create a directory using
mkdir <directory name>
- move into directory
cd <directory name>
- Setup Git
- Put your code in this directory
- Add your code to git repo
git add .
- git commit -m “<commit message>”
For further help you can go through : Git cheat sheet