Creating a Repository with Git

This assumes you have already installed git on the system in use.

Creating a new repository with git is very simple. First, using your favorite command line tool, navigate to the directory you want to start using with git. Then, it’s as simple as

git init

You could also navigate to the parent directory, and

git init

so, something like

git init my-new-project

And now you have a new directory called my-new-project that is under version control with git.

This entry was posted in Version Control. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>