Initial local git repo

Same like svn you can initial a local repo and clone from a local (or network) path instead of an online path like…/project.git to keep your repo locally and share only within your private network.

  1. Under the folder want to create a local repo ie. C:/repos/
    git init --bare yourproject.git
  2. Change folder to your working folder ie. C:/projects/
    git clone /c/repos/yourproject.git
  3. Done. You can start work on it.

After initial a repo you can find the folder structure contains branches, hooks, info, objects, and refs. You can always backup this folder and that is all you need to keep commit log and revisions history.

You can install the git windows client in command prompt or use any other windows client for git.

see also


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