Skip to content

Instantly share code, notes, and snippets.

@debloper
Last active December 13, 2015 18:19
Show Gist options
  • Save debloper/4954530 to your computer and use it in GitHub Desktop.
Save debloper/4954530 to your computer and use it in GitHub Desktop.
GNUnify 2013

GitHub: it's good for you!

A hands on development session on GitHub to help you jump start with collaborative open-source developments. Good if you already know Git; if not, then it'll help you learn.

Session covers GitHub basics, issues, wikis, pull-requests and github-pages for free static web-hosting for the project-websites.

More details: https://gist.github.com/debloper/4954530

Gearing up:

  • Install Git in your system: http://git-scm.com/downloads
    • Additionally install GUI/Viz clients
      • Git-GUI is bundled in Windows' Git installer
      • Git-GUI for Linux can be installed with corresponding package managers (yum, aptitude, etc.)
      • GitX for Mac can be downloaded from http://gitx.frim.nl
      • There are a few other tools available for the brave ones: http://git-scm.com/downloads/guis

  • Get a GitHub account, if you haven't already done so
  • Configure Git to use your (global) credentials
    • $ git config --global user.name "Full Name"
    • $ git config --global user.email "your@email.id"
    • $ git config --global credential.helper cache
    • $ git config --global core.autocrlf true       — line-ending fix, for Windows only

  • [OPTIONAL] Setting up SSH keys
    • Run $ ssh-keygen -t rsa -C "your@email.id"
    • Provide a password for your id_rsa file generated in <user_dir>/.ssh
    • It's a good practice to give a password, but is NOT mandatory (blank password accepted).
    • Open the id_rsa.pub file, select all & copy its contents (don't miss even a single character)
    • Go to your GitHub account > Account Settings (Tools Icon) > SSH Keys > Add SSH Key
    • Here, paste the copied content in the input field & click "Add Key"
    • If everything went right, running $ ssh -T git@github.com should authenticate you
    • If you're confused, or need more detailed steps, then follow: https://help.github.com/articles/generating-ssh-keys

That's all... now, go Git it! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment