Howdy people,
I'm a using of git for several time, but now I have the need to a git server.
My question, where can get a howto for reallyyyy newbies on git server?
I have part of it setup but still not working.
Thanks in advanced,
Jorge,
I'm a using of git for several time, but now I have the need to a git
server.
My question, where can get a howto for reallyyyy newbies on git server?
One question:
I've created a project on the server with:
mkdir project.git
cd project.git
git init
-and now locally, created a directory, and cloned this, it said that i was
cloning an empty repo, fine about that.
-now i added something locally, i get: (locally this is on a windows
machine with tortoiso git)
--
git.exe push --tags "origin" master:git://192.168.1.206/projects.git
error: src refspec master:git does not match any.
error: failed to push some refs to 'git://192.168.1.206/projects.git'
--
I've read somewhere that i have to init both repos, remote and local to
the same branch, is it correct?
My idea is:
- clone remote repo
- add projects locally and commit them to remote
how can this be done easylly?
From: Howard Miller <hidden> Date: 2016-06-15 22:47:56
2009/12/27 [off-list ref]:
quoted
I'm a using of git for several time, but now I have the need to a git
server.
My question, where can get a howto for reallyyyy newbies on git server?
One question:
I've created a project on the server with:
mkdir project.git
cd project.git
git init
-and now locally, created a directory, and cloned this, it said that i was
cloning an empty repo, fine about that.
-now i added something locally, i get: (locally this is on a windows
machine with tortoiso git)
--
git.exe push --tags "origin" master:git://192.168.1.206/projects.git
error: src refspec master:git does not match any.
error: failed to push some refs to 'git://192.168.1.206/projects.git'
Firstly, I would have a serious look at 'gitosis' for the server end
(there are other similar projects I believe).
Secondly, the push command is wrong. You don't need to supply the
remote URL again... that's what 'origin' is telling the push command,
which remote to use. This would have been established by the original
clone.
Also, again, be careful with 'empty' repositories. (again AFAIK) an
empty repository is just that, it doesn't even have a master branch so
you really need to check out a branch and commit something before
pushing makes much sense. I'm sure this is not 100% correct but you'll
be safe that way!
Howard
Firstly, I would have a serious look at 'gitosis' for the server end
(there are other similar projects I believe).
Secondly, the push command is wrong. You don't need to supply the
remote URL again... that's what 'origin' is telling the push command,
which remote to use. This would have been established by the original
clone.
Also, again, be careful with 'empty' repositories. (again AFAIK) an
empty repository is just that, it doesn't even have a master branch so
you really need to check out a branch and commit something before
pushing makes much sense. I'm sure this is not 100% correct but you'll
be safe that way!
Well, gitosis even made me more confused :P
Let me reask:
I'm running git deamon under supervisor with:
/usr/lib/git-core/git-daemon --syslog --export-all --enable=receive-pack
--verbose --base-path=/home/apache/gitprojects
then i went to /home/apache/gitprojects and runned:
git init
git add .
but for example, CGIT web interface says:
--
Not a git repository: '/home/apache/gitprojects'
generated by cgit at 2009-12-27 21:54:47 (GMT)
--
what could i be missing here?
I've been reading howto's i find on the web, but all lead me to the same
point, what i did and non work.. (with me).
Jorge,