I just inherited a git enabled website. My goals are
This simple goal is challenging because the former developer left a very scant documentation and I am completely new to git.
Here is what I have:
Now for some reason best known to the former developer, this site does not have a repo at Bitbucket rather he was pushing his updates from he development machine to the live site directly. And to further confuse me, in the live site, I found two files id_rsa.bitbucket and id_rsa.bitbucket.pub in /home/user/.ssh and also when I cat /home/user/.ssh/config/ I found
Host Bitbucket.org User username IdentityFile ~/.ssh/id_rsa.bitbucket
Now using SourceTree when I try to clone
I get an access denied error. I get an access denied error. Now I was entering my standard ssh password.
So I was thinking maybe it is because my Windows machine does not have an SSH client, but then I saw that SourceTree have a tool to create or import ssh keys, I tried that but then it created a .ppk key and not a .pub key. In any event I am already confused.
Please I can use any help, if you need more clarification, please let me know. Thanks
You're doing something similar to what I did with many repositories recently. The good news is that it's quite straightfoward.
So, the developer was committing to a local repository and publishing the changes to the live site. This does have its drawbacks so you're right in setting up a repository with Bitbucket.
Those two files are your SSH keys, both public and private. Make sure you don't put these into source control otherwise they'll be published to the Internet (this has been a well known problem in recent times). Keep your private key very, very safe. Having your keys setup means that you can pull/push changes without having to explicitly authenticate. They should be kept in ~/.ssh/.
There's a guide to SSH keys here which will help: https://confluence.atlassian.com/pages/viewpage.action?pageId=271943168. Usually you just set up id_rsa and id_rsa.pub and put them in that folder. If you're dealing with multiple keys (because yours is named differently I presume it's multiple keys) then you'll need to set up a ~/.ssh/config file. The link will help you with this. Make sure your public key is put into your Bitbucket account settings. There's a section in that article called 'Load each key into the appropriate Bitbucket account' which will help you with this.
That should address everything you need, but feel free to ask more questions once you've gone through the above carefully, and read the linked article to help set up your SSH keys.
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs