views:

249

answers:

1

Greg's comment help me understand http://stackoverflow.com/questions/1698552/tortoisegit-push-successfully-but-no-new-files/1698657#1698657

How do i create a local bare repository with tortoisegit?

I can right click and clone a repository from github and push. I would like to create a local repository then do the same thing, clone and push. How do i do that?

-edit- i have created a local repository just fine but i cant push to it. I need to pull everything. I like the consistency of pushing in both my projects.

+1  A: 

You can create it manually (see Git FAQ), but Issue 220 (November 2009, still opened in May 2010) mentions that TortoiseGit does not yet support that option.

So for now, it is:

$ mv repo/.git repo.git
$ git --git-dir=repo.git config core.bare true
$ rm -rf repo

or

$ ssh to remote server
$ git clone --bare -l <path_to_repos> <new_dir>
* renamed old repository directory
* renamed new repository dir to what old repository used to be.
VonC