![]() ![]() Next, you will need to tell github your SSH public key. Now, you have your own pair of SSH private and public keys pair. (Note: Move mouse in application window to generate random values.) Click "Generate" to generate new key (1).You may choose to download either PuTTYgen.exe or the entire PuTTY package (zip) To generate public and private SSH keys, you will need the PuTTYgen from the PuTTY package. Create SSH public and private keys github required a SSH key in order to push repository to github. On the client side I have registered my private key with Pageant, created a session in Putty along with pointing it at my private key and saved it. Public key I renamed and updated Freesshd to point at the folder containing the public keys. Ssh = "C:\Program Files\TortoiseHg\TortoisePlink.exe"Ĭreate new account at github (if you don't have an account yet), else skip this step.ĥ. Private key I copied to my client and updated mercurial.ini. Add the following lines to your configuration file: DevOps & SysAdmins: How to let TortoiseHg (Mercurial) on Windows use the Private Key file generated (by Puttygen)Helpful Please support me on Patreon: htt.Click "Edit File" button in "Global Settings" tab.This file can be access from File > Settings.Wait until repository cloning finished.ģ.Configure hg-git The following steps had to be done by direct editing mercurial.ini file.Configure clone repository dialog box.Install hg-git hg-git can be download by cloning the repository directly. Download and install TortoiseHg from here: Ģ.Thus, I decided to write this documents to include some steps with additional screen shots. The document is very informative, but some of the steps are not written in details. Binary packages of TortoiseHg for Windows include Mercurial, TortoisePlink and a merge tool and are thus completely ready for use Out of the Box. I was able to setup my TortoiseHg to work with github using the instruction written by James McKay. TortoiseHg consists of a shell extension, which provides overlay icons and context menus in your file explorer, and a command line program named thg.exe which can launch the TortoiseHg tools. There are few articles around the web with the same topics. (I pulled the commits from LOCAL_PATH into this new repo)Īlthough the bookmarks extension is "automatic", for me it required manual tweaking on each push, especially when there were branches in the repo I had to move the bookmark-tags to be positioned on most recent changesets on proper heads.This is a step-by-step instruction to setup TortoiseHg (A GUI shell extension for Mercurial SCM) to use with github (Online project hosting using git Version Control System). I runned the command hg pull -verbose in the directory of the project and this is the output: C:Developmentproject>hg pull -verbose running 'TortoisePlink.exe' -ssh -2 -P 2224 'hg -R project serve -stdio' abort: Het systeem kan het opgegeven bestand niet vinden. I needed to re-clone the repository, with: hg clone LOCAL_PATH_2 PuTTY tool "pageant" must be started, with the private key loaded. In the dialog box that opens, find the Private Key that you saved earlier and open it. Proper public+private key pair must be created, with the public key uploaded to github (see the links below). Once the key has been saved, browse to the installation folder of TortoiseHg (usually C:\Program Files\TortoiseHg) and run Pageant.exe, right-click on the new icon that appears next to the clock and select 'Add Key'. Ssh = "C:\Program Files\TortoiseHg\ssh.exe" Second, run copy "C:\Program Files\TortoiseHg\TortoisePlink.exe" "C:\Program Files\TortoiseHg\ssh.exe"`Īnd also make a related change in "mercurial.ini": ![]() ![]() Third, for read-only access to a github repo: hg clone git:///USER/PROJECT.git LOCAL_PATHįor proper pushing, the "bookmarks" extension needs to be enabled in "mercurial.ini": ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |