Using git and github for projects

From Expertiza_Wiki
Revision as of 21:11, 27 September 2011 by Admin (talk | contribs) (Created page with "Git is a source code management tool.More on git [http://progit.org/book/ch1-3.html here]. github.com is a web application that allows anyone to create an account and host a publ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Git is a source code management tool.More on git here. github.com is a web application that allows anyone to create an account and host a public git repository. When you work in teams, we encourage you to set up a repository on github for your project.

Some basic steps:

  • Create an account on github
  • Install git- Depending on your OS, this will vary. For ubuntu
 $ sudo apt-get install git-core git-gui git-doc
  • github uses SSH keys to setup secure connection between your local repo and the public repo. Go to github help at Github help and follow the steps to setup ssh keys
  • Creating a repository - Lets say we want to create a repository for Backchannel project.


Create a directory where the repository will be stored

 $ mkdir ~/backchannel

Init a git repo in that directory

 $ cd ~/backchannel
 $ git init

You will get an output like An empty git repository has been initialized on the terminal. This initializes a git repo locally.

  • Create a repository on github

Follow steps at create a gihub repo