0

我在尝试修剪我们的 git 存储库时遇到问题。修剪适用于遥控器/来源,但另一个开发人员已放入遥控器/[他的用户名]。我可以修剪这些吗?现在我收到一个身份验证错误。他不再为我们工作,我需要清理他的一些提交。

4

2 回答 2

1

它最终成为git remote rm the-remote-repo-name示例 -git remote rm jtrepo

于 2013-08-27T10:34:10.700 回答
-1

With Atlassian Stash, in order to delete branches that you don't have branch-level permissions for requires you to have Repository Administrator or Project Administrator permissions. BitBucket is a different product with a different feature set; you may want to start here for information on Git branch management with BitBucket.

If you're trying to delete branches on the BitBucket repository, there are some things to check:

  1. Has Deny non-fast-forwards or Deny branch deletions been set on the BitBucket repository? If so, the repository administrator must temporarily unset one or both of them temporarily to allow branch deletions.

  2. Stash supports branch-level permissions, but BitBucket doesn't. You either have write access, or you don't. Are you sure you have write access to the remote repository?

  3. If the two previous solutions don't set you straight, then you'll need to improve your question with some screenshots of the permissions and actual error messages if you want further help. Good luck!

于 2013-08-27T04:52:52.830 回答