Basic git commands

I’m using my old Macbook which is still on OS 10.4, and was very happy to find a [git binary already built for Tiger](http://www.metastatic.org/text/Concern/2007/09/15/new-git-package-for-os-x/)

And to get familiar with the basics, there turned out to be a really good tutorial as well as introduction to version control in general on A List Apart, [Getting Started with Git](http://www.alistapart.com/articles/get-started-with-git/)

Here are the basic commands, which are all familiar from svn:

[bash]
git init // creates an empty repo in the current directory
git status // lists any changes in the current directory
git clone // creates a new local repo cloned from a remote one
git log // lists the recent changes from the current repo
git add // add a new file to the current repo, or add a modified file to the staging area prior to commit
git commit // commit changes
[/bash]

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

w

Connecting to %s