Tom
Tom

Reputation: 3063

Problems pushing to remote Git repo from Git Gui (windows)

so I have Git GUI installed on windows, and I am wanting to push to a git repository on an ubuntu server.

Here is what I have done so far:

1) Install git

2) Initialise a repository with:

mkdir -p /home/ubuntu/gitdir/myproject.git
cd /home/ubuntu/gitdir/myproject.git
git init --bare

Now I get a success message saying that this has all worked fine:

Initialised empty Git repository in /home/ubuntu/gitdir/myproject.git/

When I try to push to the server through Git GUI I get the errors:

Url: [email protected]./home/ubuntu/gitdir/myproject.git
Error: 'link' does not appear to be a git repository. The remote end hung up unexpectedly.

I have also seen some syntax which adds a colon after the IP address, i'm not sure if i'm doing this correctly but it gives an alternate error:

Url: [email protected].:/home/ubuntu/gitdir/myproject.git/
Error: No supported authentication methods available (error shown via PuTTy popup)

I have tried searching for the answer online but can't seem to find anything that works, I just want to get it set up and working then I can finally start learning Git from practice!

Other information:

If I've missed anything out just ask for more information.

Thanks in advance, Tom.

Upvotes: 0

Views: 1332

Answers (1)

Peter Brooks
Peter Brooks

Reputation: 1200

if you intend to use SSH then change the URL to the following: ssh://[email protected]:/home/ubuntu/gitdir/myproject.git

Upvotes: 2

Related Questions