Run these commands in a directory devoted to your project:
mkdir project_foo
cd project_foo
git clone --bare [email protected]:yourorg/project_foo.git .bare
echo "gitdir: ./.bare" > .git
Now edit .bare/config
, adding fetch = +refs/heads/*:refs/remotes/origin/*
below [remote "origin"]