Git Usage

From Aicip
Revision as of 15:19, 27 March 2012 by Fwang2 (talk | contribs) (Created page with " Suppose you want to work with a git repository called '''test.git''', here are the basic tasks you might be interested: === Clone A Repository === In Subversion, it is usu...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Suppose you want to work with a git repository called test.git, here are the basic tasks you might be interested:

Clone A Repository

In Subversion, it is usually called a checkout, but for git, you do cloning:

   git clone git@aicip.eecs.utk.edu:test.git

Now you should have a directory test created which has all the files and history ever recorded for this repository.

Add a new file and commit the changes

Say you want to add a new file into the repo.

   git add mynew.cpp
   git commit -am "my new file"