LoginSignup
2
0

More than 3 years have passed since last update.

システムGitでSourceTreeのPuTTYで設定したSSHを使う

Posted at

概要

環境

  • Windows 10
  • SourceTree 3.3.8

やりたいこと

  • SourceTreeの内臓GitではなくシステムGitを使いたい
  • SourceTreeのシステムGitでSourceTreeのPuTTYで設定したSSHを使いたい
  • SourceTreeのPuTTYとは別でSSHの設定をしたくない

設定方法

前提条件

  • SourceTreeの内臓Git(Embedded Git)とは別で、Gitをインストールしている(System Git)
  • SourceTree上でSSHの設定を済ませている(GUI上でSSHが利用できている)

SourceTree内のplink.exeのパスを控える

SourceTreeで動作しているPuTTYのplink.exeを探す。
SourceTreeで使われているPuTTYはtools\puttyにある。
SourceTreeはバージョンによってインストール先が異なる。
自分の環境ではC:\Users\{名前}\AppData\Local\SourceTree\app-{バージョン}\tools\putty\plink.exeだった。

環境変数GIT_SSHの設定

環境変数に新しくGIT_SSHを作成し、控えたplink.exeのパスを設定する。

参考文献

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0