Git learning site: here

Chapter 1

Git is local, unlike Perforce or CVS, where you have to connect to the server to diff against previous revisions. Git only adds data to local database, so it’s hard to screw things up.

Three states: working directory, staging area, and git directory.

On the Mac, install Git from:

$ sudo port install git-core +svn +doc +bash_completion +gitweb

Set git username and user email.

$ git config --global "John Doe" 
$ git config --global

Chapter 2

“git clone” is the command that copies an entire repository, including all the history and revisions of files.


About dchana

all about connecting technology to everyday life and making things simple
This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s