问题标签 [bitbucket-server]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
git - 在网络服务器上使用 Stash 分叉并从另一个存储库添加文件
我是 git 新手,需要一些帮助。我的计划:
- 我有 debs 存储库
- 我有文档存储库
- 我想从 debs 分叉到 www 文件夹
- 使用修改后的名称和目录从 docs 存储库添加文件
- 然后我想从 debs 文件夹和修改后的 docs 文件夹合并到 www 文件夹
- 在网络服务器中,我想使用 cron 自动提取 www 文件夹以更新 deb 存储库
我使用 Atlassian Stash,我看到有一种方法可以从 debs 分叉到 www 文件夹。当我在 debs 目录中更改某些内容时,它会自动将更改推送到 www 文件夹。这是真的吗?
我想制作能够自动执行第 4、5 和 6 部分的脚本。
最好的方法是什么?
git - npm install access denied error on ssh git repo - windows7
I am trying to help another developer run npm install
on their windows machine but they are getting an access denied error with one of the private project dependencies in package.json
. The project the cloned one is coming from is on the same domain and is in the same project in Stash.
I am on OSX and have no problems. Since the other developer is remote, I decided to test myself on a fresh Windows7-64bit laptop we had at work and see if I could reproduce and solve. We are using stash, and this is a private repo which I can successfully clone on its own.
Any thoughts?
I am using
npm info in the above logs
Thanks in advance.
edit: the other developer was able to get around the issue by generating a new SSH key without a passphrase, but this is contrary to the instructions Atlassian itself provides for creating SSH keys, so maybe this leads itself to being more of a stash issue then.
git - 如何设置供多个用户使用的 git 存储库?
我想在我们的一台服务器上设置一个可供某些用户访问的 git 存储库。我们使用 Stash 作为 git 主机,只有拥有 Stash 密钥的用户才能推送。我希望将我们的本地代码放在盒子上每个人都可以访问的位置(/data/repo),并允许授权用户进行更改并将它们作为他们自己(而不是作为服务帐户)推送回 Stash。如何在公共仓库中拥有特定于用户的 git 设置?
git - Atlassian Stash Git 克隆错误致命:无法访问“http://admin@localhost:7990/scm/gmpp/gmpp.git/”:请求的 URL 返回错误:403
按照这个链接:https ://confluence.atlassian.com/display/STASH/Getting+started+with+Git+and+Stash
我刚刚安装了 Atlassian Stash,创建了一个新项目和存储库,但立即得到了这个错误,知道如何解决这个问题吗?
git - Git 错误:[远程拒绝] master -> master(缺少必要的对象)
我对 git 有一个相当令人担忧的问题。
几天前,当服务器 git 处于蓝屏状态时,我正在提交一些更改。(我们认为它实际上是由 git 引起的。)
从那以后,我无法对存储库进行任何更改,而其他人可以。当服务器崩溃时,我不能再提交对我正在提交的文件的更改,但是我可以提交对其他文件的更改。
我尝试创建一个新目录并克隆到其中。以及git stash
, git pull --rebase
, git stash apply
.
无论如何,当我现在尝试提交服务器蓝屏时提交的文件时,服务器返回错误:
我可以提交测试更改,例如添加和删除文件。
我不太确定 git 是如何安装在这里的,我知道我们有(非常旧的版本)Stash和Jira,并且它以某种方式内置于其中。问题是如果服务器对我来说很糟糕,我什至不知道如何修复它!
无论如何要重置或查询服务器上特定文件的状态?
任何建议都感激不尽!
编辑:
值得一提的是,我通常使用GitHub for Windows来提交更改,并且只有在出现问题时才会退回到 shell。巧合的是我们的服务器蓝屏有一个升级到这个应用程序。
编辑2:
我认为它与 GitHub for Windows 无关,我重新创建了存储库,并且可以从 git 'console' 和 GitHub 应用程序提交测试更改(添加和删除文件)。
但是,当我尝试对服务器崩溃时提交的两个文件进行更改时,我得到了上面的错误。所以问题与服务器上的这些特定文件有关。
jenkins - 使用 SSH 连接 Stash 和 Jenkins 的问题
按照此处的说明进行操作:http: //nerdwin15.com/2013/04/continuous-integration-with-stash-and-jenkins/
我有詹金斯和存储“连接”但是,运行构建挂在
从 ssh://git@git.xyz.com:7999/gp/gp-xyz.git 获取上游更改
致命:无法从 ssh://git@git.xyz.com:7999/gp/gp-xyz.git 获取 hudson.plugins.git.GitException:无法从 ssh://git@git.xyz.com 获取:7999/gp/gp-xyz.git
所以从我收集的问题来看,如果我在 jenkins 上运行这个命令(它在 Windows 上运行)..
$ git clone ssh://git@git.xyz.com:7999/gp/gp-xyz.git 克隆到'gp-xyz'...输入密钥'/c/Documents and Settings/userMe/.ssh的密码/id_rsa':
是我必须在这里输入密码的事实。如何配置 Windows 来存储 ssh 密钥,以便我可以像构建服务器一样进行克隆?
我尝试的是:
userMe@jenkins /C $ ssh -T git@git.xyz.com:7999 ssh: git.xyz.com:7999: 没有与名称关联的地址
userMe@jenkins /C $ ssh -T git@git.xyz.com git@git.xyz.com 的密码:权限被拒绝,请重试。git@git.xyz.com 的密码:
但是,这让我感到困惑。因为 Stash 在端口 7999 上运行,并且在 stash 上没有名为 git 的实际用户,但它不会让我改变它?
git - 如何将自定义 ssh 密钥与存储(cli)工具一起使用?
我刚刚发现 Atlassians 漂亮的 stash 命令行工具。凉爽的。由于我使用自定义 ssh 密钥,因此我在 ~/.ssh 中配置它们:
当我尝试使用存储工具(在 cli 上)发出拉取请求时,我收到以下消息:
错误:存储库似乎没有托管在 Stash 中;远程网址:bb:hippeelee/land-of-lisp-for-clojure。
我运行了 stash configure 但它没有提供设置我的 ssh 首选项的选项。有人知道通过 Atlassian stash cli 工具使用自定义 ssh 密钥的方法吗?
git - 如何将 GitHub.com 存储库复制到私有 Git 服务器?
我是 git 新手,并试图找出将另一个用户拥有的现有 GitHub.com 存储库复制到我在 Atlassian Stash 上的私有 git 服务器的最佳方法。理想情况下,我们至少可以每月复制一次。
我现在正在做的乏味方法是将 GitHub.com 存储库克隆到私有工作站,然后将远程添加到 Atlassian Stash 中的空存储库并推送它。这对于一个存储库来说没什么大不了的,但我们至少有几十个我们想要复制。
据我了解,作为所有者,我可以为存储库设置遥控器以将更改推送到多个位置,但我还没有弄清楚如何作为非所有者拉取存储库。Atlassian 社区中有两个可用的插件,它们似乎都只提供将存储库推送到遥控器,而不是按需拉取。