简体   繁体   English

Composer / Packagist忽略分支

[英]Composer/Packagist ignore branches

So I have the following branches in my Github repo: (follows "git flow") 所以我在我的Github回购中有以下分支:(跟随“git flow”)

  • master (latest stable: 1.1.0) 大师(最新稳定版:1.1.0)
  • develop (2.0.0) 开发(2.0.0)
  • feature/feature_in_dev 功能/ feature_in_dev
  • feature/other_feature_in_dev 功能/ other_feature_in_dev
  • release/1.0.0 发布/ 1.0.0
  • release/1.1.0 发布/ 1.1.0

I already know how to create branch aliases, such as for the releases. 我已经知道如何创建分支别名,例如发布版本。 I could technically remove the composer.json file each time I add a new feature branch and then commit it back in once I am ready to merge it into develop , but that would be very annoying and easy to forget. 每次我添加一个新的功能分支然后将其提交回来,我可以在技术上删除composer.json文件。我准备将它合并到develop ,但这将非常烦人且容易忘记。

My Question: How can I hide the feature branches from Packagist? 我的问题:如何隐藏Packagist中的功能分支?

如果分支在根文件夹中不包含composer.json文件,则可以从packagist隐藏分支。

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

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