Reputation: 5072
I'm using SourceTree on Windows and I'm already successfully pushing my repository to BitBucket.
I would like to do the same, but instead of pushing to BitBucket, I would like to push to my Web Hosting Account instead (i.e. "1&1 Shared Hosting").
My 1and1 account provides SSH access and has git already installed. I tried to connect to the SSH using PuTTY and it works. When I enter "git" I can see all the available git commands.
I would need to know:
How to connect SourceTree to the SSH? I have a domain, username and password, however I don't see such fields in SourceTree or Pageant, which requires a special file format ".ppk
".
Once connected to the SSH, How to create the repository remotely on my 1&1 account?
Once the repository exists on my hosting, How to add it as a Remote Repository so I can push to it?
Note: This question is about the SourceTree-Windows software, which is itself a graphic user interface for most git functions – please don't reply with command line instructions.
Thank you very much!
Upvotes: 14
Views: 31912
Reputation: 11992
The syntax that you have to use in the "Source / URL" field is the following :
ssh://<user>@<server_name>/<git_repository_path>
For example :
ssh://[email protected]/opt/git/project.git
(if the repository does not exist yet on the remote server, then you can create an empty one with the following commands :)
$ mkdir -p /opt/git/project.git
$ cd /opt/git/project.git
$ git init --bare
Upvotes: 11
Reputation: 17359
Upvotes: 1