I've inherited a position and instructions for creating a new git
repository. Unfortunately I've run into problems and no one here knows what to do. Hoping someone can help me out.
Here are the instructions I was left:
Create a new repository:
For these steps you need to be in the gitosis-admin
repository, if you don't have it, in a suitable parent folder do: git clone
[email protected]:gitosis-admin.git
Edit gitosis.conf file - in gitosis-admin root, under [group base-repo] section, add the name of the new repo to the end of the "writable =" section.
Commit change and push back to gitosis-admin master.
For the next commands, my_new_project represents the name of your project
mkdir my_new_project
cd my_new_project
git init
Copy in any files you want to use to start the repo
git commit -a -m "Initializing new
repository"
git remote add origin
[email protected]:my_new_project.git
git push master
git push master:qa
So I did 1 and 2, with no problem. It created a local folder on my machine called gitosis-admin. I edited the gitosis.conf file as indicated. But when I try to do step 3 (which I assume is git push gitosis-admin master) bash tells me that
fatal: 'master' does not appear to be a git
repository
fatal: The remote end hung up unexpectedly
What am I doing wrong?