PDA

View Full Version : [ubuntu] How do I setup Git?



pepsifx357
March 27th, 2012, 04:36 AM
Hey all,

I've got some Music related projects the me and my friend are wanting to colaborate on. Git seems to be the way to go, however, I seem to be having problems setting Git up.

I am installing the Git server on the same machine as the client. I keep having errors.


root@daw:/home/ben# git clone gitosis@10.1.1.3:gitosis-admin.git
Initialized empty Git repository in /home/ben/gitosis-admin/.git/
gitosis@10.1.1.3's password:
fatal: 'gitosis-admin.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

If I try the command from my username I get the same thing:


ben@daw:~$ git clone gitosis@10.1.1.3:gitosis-admin.git
Initialized empty Git repository in /home/ben/gitosis-admin/.git/
gitosis@10.1.1.3's password:
fatal: 'gitosis-admin.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

Any Ideas?


Thanks,

Ben

kevdog
March 27th, 2012, 12:59 PM
Does this link help:
http://book.git-scm.com/4_setting_up_a_private_repository.html

pepsifx357
April 5th, 2012, 12:00 AM
Total fail for me. I guess Git wasn't the right thing for us. I can't believe how complicated the process was and it didn't even work.

rubylaser
April 5th, 2012, 12:39 AM
Total fail for me. I guess Git wasn't the right thing for us. I can't believe how complicated the process was and it didn't even work.

Did you try following the Ubuntu Docs (https://help.ubuntu.com/community/Git)? I've went the server route a few times, and it's never seemed too difficult. But, after seeing how awesome/easy merging is in GIT, I'd never go back to SVN.

As a different option, you could also just init with a local repository that you put into a shared Dropbox folder and bypass the server setup altogether.

markbl
April 5th, 2012, 01:01 AM
Total fail for me. I guess Git wasn't the right thing for us. I can't believe how complicated the process was and it didn't even work.
Well you posted here asking about setting up git when clearly your problem is that you have not set up gitosis correctly. Gitosis is not git, it is another independent tool. Read a setup guide for gitosis, e.g. http://www.howtoforge.com/setting-up-gitosis-on-ubuntu.