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.

Published by Robert Reiz

CEO @ VersionEye. Passionated software developer since 1998.

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: