1

I am trying to implement ssh keys pairs for git using bitbucket.

Then i got this link It is using Gitbash for commandline. Now i got confused bet the Terminal in SourceTree UI and Gitbash. So are they same ? If no then will using any of twos for git command make any difference ?

any help is appreciated.

loop
  • 8,162
  • 9
  • 34
  • 75

1 Answers1

2

No, as long as both git shell have the same HOME environment variable referring to the same folder, both shells will be able to find the same ssh keys and config.

If you are on Windows, you need to make sure of what %HOME% is set to, because this isn't a variable set by default (it is set for instance by git-cmd.bat, for the classic git shell).

VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283
  • @loop what OS are you using? What version of Git? – VonC Aug 24 '14 at 17:34
  • I am using Windows. It is the latest one. – loop Aug 24 '14 at 17:34
  • @loop so my answer stands. Make sure HOME is defined and references the same folder. Msysgit (Git for Windows) has ssh included in its distribution. – VonC Aug 24 '14 at 17:35
  • Ok after defining Home - Will the procedure for setting ssh in the link that use Gitbash - be same on sourcetree terminal ? – loop Aug 24 '14 at 17:38
  • @loop if the `HOME` is the same, any ssh key/config that you define in one will be found by the other shell, no need to define them twice. – VonC Aug 24 '14 at 17:52