Create a GIT Repository

Just go into the directory you want to have version control for and type in:

git init

This will create an empty git repository on your hard disk. With this command

git add .

you can add all files in the directory to the git repository. And with

git commit -a -m "init"

you can commit all files to your local repository.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s