Unless stated otherwise, run every command from the repository root: the directory that contains .bare.
mkdir project_foo
cd project_foo
git init --bare .bare
echo "gitdir: ./.bare" > .git
git remote add origin git@github.com:yourorg/project_foo.git
git fetch origin