简体   繁体   English

Gitbash和Sourcetree应用程序终端之间的区别

[英]Difference between Gitbash and Sourcetree app terminal

I am trying to implement ssh keys pairs for git using bitbucket. 我正在尝试使用bitbucket为git实现ssh keys pairs

Then i got this link It is using Gitbash for commandline . 然后我得到了这个链接它正在commandline使用Gitbash Now i got confused bet the Terminal in SourceTree UI and Gitbash . 现在我Terminal in SourceTree UIGitbashTerminal in SourceTree UI感到困惑。 So are they same ? 他们是一样的吗? If no then will using any of twos for git command make any difference ? 如果没有,那么对git命令使用任何二是否会有所不同?

any help is appreciated. 任何帮助表示赞赏。

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. 不,只要两个git shell都具有指向相同文件夹的相同HOME环境变量,那么两个shell都将能够找到相同的ssh密钥和配置。

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). 如果您使用的是Windows,则需要确保将%HOME%设置为默认值,因为这不是默认设置的变量(例如,对于经典git shell,它是由git-cmd.bat设置的)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM