How do I push an existing project on local system in a local git repository to my new bonobo git server?

4,287 views
Skip to first unread message

David Buddrige

unread,
Sep 17, 2014, 4:20:56 AM9/17/14
to bonobo-g...@googlegroups.com
Hi all,

Please forgive me for [what should be] a fairly straight-forward question - however, I'm a complete git newbie - having used Microsoft TFS and Subversion as the previous source-code control solutions.

I'm wanting to move over to git, and to this end, I have installed Git for windows, and [also] the Visual Studio Git plugin.  I have managed to create a local git repository for a small project I'm working on.

I have an existing [local] git project on my hard-drive which I've been working on.  I'm in an all-windows shop [unfortunately], so I don't have access to a unix/linux system.

I want to share this project, and to this end, I have created a new bonobo git server - I installed it onto my local computer [which is running IIS7], and was able to login to the bonobo server, and create a couple of users [one for me, and one for my collegue], each with our own password.

I then created a blank repository on the bonobo server while logged in as admin and assigned myself and my collegue as contributors.

Now I want to push the contents of my local repository to the bonobo server, but try as I might I cannot figure out how to do it.

I've been looking through manuals, etc, and I can't see anywhere that you specify a username/password in the git push command.  I had hoped it would prompt me for a username/password when I attempted the push.

This is what my git remote config looks like:

$ git remote -v

This is the git push command I've been attempting [from git bash]:

$ git push DPSMonitor master

However, it just hangs [as in, does not respond until I press ctrl-c after > 5 minutes of no apparent activity]

Can someone point out to me what I'm doing wrong - or how/where I need to put my username/password to push to a new repository [if necessary I'm willing to delete and re-create the repository sitting on my brand new bonobo git server], however I want to push up to a repository on my bonobo git server, the contents of my existing project.

Thanks heaps in advance all.

David. :-)



Jakub Chodounský

unread,
Sep 19, 2014, 9:54:19 PM9/19/14
to bonobo-g...@googlegroups.com
Hi,
from the first look, it looks like everything is set up and ready. However, try to create a new repository on the server side - let's say test, clone it, add a file, commit and push.

git clone http://..../test.git
(it should prompt you for username and password)

go to the repository directory and create a new file, let's say test.txt

git add .
git commit -m "test.txt added"

git push origin master
(it might prompt you for a password)

Now, you should see your content comitted on the server.
Reply all
Reply to author
Forward
0 new messages