Master does not appear to be a git repository error

Posted by EmmyS on Super User See other posts from Super User or by EmmyS
Published on 2012-11-05T21:35:21Z Indexed on 2012/11/05 23:05 UTC
Read the original article Hit count: 211

Filed under:

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:

  1. 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
  2. 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.
  3. Commit change and push back to gitosis-admin master.
  4. For the next commands, my_new_project represents the name of your project
  5. mkdir my_new_project
  6. cd my_new_project
  7. git init
  8. Copy in any files you want to use to start the repo
  9. git commit -a -m "Initializing new repository"
  10. git remote add origin [email protected]:my_new_project.git
  11. git push master
  12. 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?

© Super User or respective owner

Related posts about git