G
G
g00d2011-06-14 17:10:06
git
g00d, 2011-06-14 17:10:06

gitosis setup

shoveled a lot of manuals :) but I still can’t catch up with something (because everyone writes differently)

, so I cloned gitosis-admin.git and corrected the config
, it has now become like this, done add, commit and push. there were no errors. However, the project-name repository is not created on the local machine, I create an empty directory , I initialize the git rep in it , I add the comich file and I get confused to fill in the trace. the code says this what am i missing?
[gitosis]

[group gitosis-admin]
writable = gitosis-admin
members = m1

[group dev-team]
writable = project-name
members = m1 m2 m3





git remote add origin [email protected]:project-name.git


fatal: 'project-name.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly


Answer the question

In order to leave comments, you need to log in

3 answer(s)
3
3ds, 2011-06-14
@3ds

Only on Friday I dealt with gitosis) It is
advised to do this: but it was not created for me either, and I did this: well, a commit with a push. (yes, it's better to make an empty file like touch readme.txt and then git add. & git commit -am "init"). and everything was great ;)
mkdir myproject
cd mypyroject
git init
git remote add MYSERVER [email protected]:myproject.git
touch testfile
git add .
git commit -am 'add test file'
git push MYSERVER master:refs/heads/master

git init --bare myserver ssh://[email protected]:2280/home/git/repositories/test.git

A
Andrey Yantsen, 2011-06-14
@zvirusz

Does the error appear immediately after remote add? I just did it git remote add test [email protected]:test.git- it went without errors (there is no root access to Yandex, honestly). After adding the remote and the first commit, you need to push - then the repository will be created:git push origin master:refs/heads/master

M
muromec, 2011-06-14
@muromec

>git remote add origin [email protected]:project-name.git
>fatal: The remote end hung up unexpectedly
something you are deceiving habr. remote add adds an entry to the config and should not go anywhere on the network.
you are probably confusing the order of arguments in git push.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question