我在尝试修剪我们的 git 存储库时遇到问题。修剪适用于遥控器/来源,但另一个开发人员已放入遥控器/[他的用户名]。我可以修剪这些吗?现在我收到一个身份验证错误。他不再为我们工作,我需要清理他的一些提交。
2 回答
它最终成为git remote rm the-remote-repo-name
示例 -git remote rm jtrepo
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:
Has
Deny non-fast-forwards
orDeny 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.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?
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!