Github tutorial for beginners

Using git/github may look like a daunting task but once you set it up, it is not that difficult. Here are quick steps to get started with git.

  1. Create a user account at
  2. Create a new repository at You can also choose to clone some existing repository. Check Initialize this repository with a README.
  3. Click create repository. Wow! You are done! Go and celebrate for a while!
  4. To do commits, you need to install git client. You can download client here for your environment. The GitHub ui will ask you to login to do initial setup. In case you do it from linux shell there are commands:
    git config --global "Your Name"
    git config --global "your_email"
  5. From command line use this to clone the repositiry
    git clone
    (replace it with your repository name)
  6. In case you get error “SSL certificate problem, verify that the CA cert is OK”, then you may want to update the openssl. For centos linux this command will work:
    sudo yum update openssl
  7. Make changes to your You can look the jquery README (raw).
  8. git status -s (to see status of changed files)
  9. git diff (to see the diff)
  10. git checkout . To undo changes to your working copy of the files. Use filename instead of dot for a single file.
  11. git commit -a (add and commit to local repository)
  12. git push origin master (push to original master). Here you will have to enter user and password.

You can get detailed git reference from many websites. Here is an online book by Scott Chacon you can refer to.

Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit


Click here to write/view comments