我刚刚发现 Atlassians 漂亮的 stash 命令行工具。凉爽的。由于我使用自定义 ssh key ,因此我在 ~/.ssh 中配置它们:
Host bb
Hostname bitbucket.org
user git
IdentityFile ~/.ssh/custom_key
当我尝试使用存储工具(在 cli 上)发出 pull 请求时,我收到以下消息:
error: Repository does not seem to be hosted in Stash; Remote url: bb:hippeelee/land-of-lisp-for-clojure.
我运行了 stash configure 但它没有提供设置我的 ssh 首选项的选项。有人知道通过 Atlassian stash cli 工具使用自定义 ssh key 的方法吗?
最佳答案
在这里 stash 开发人员。
Looks like该工具使用正则表达式来匹配 URL。特别是它需要两个斜杠 - ':' 把它扔掉了,它需要以 '.git' 结尾。如果你尝试“ssh://bb/hippeelee/land-of-lisp-for-clojure.git”会发生什么?
编辑:另外,值得指出的是 Stash 命令行工具不适用于 Bitbucket。我们目前有不同的 API。
关于git - 如何将自定义 ssh key 与存储(cli)工具一起使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23402179/