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!
From Sourcetree, open the PuTTY Key Generator dialog by going to Tools > Create or Import SSH Keys. Click Load, navigate to your SSH folder, and click the private key. Make sure you're looking at All files if you don't see your private key. Enter your passphrase for the SSH key and click OK.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With