简体   繁体   English

在GitHub上分叉一个仓库,但是使用我们自己的语义版本标记?

[英]Forking a repo on GitHub, but use our own semantic versioning tags?

Disclaimer 放弃

Our team has used git in projects at work for about two years, but we've never forked other projects, so we're fairly new in the contributing part. 我们的团队已经在工作中的项目中使用git大约两年了,但是我们从来没有分叉其他项目,因此我们在贡献部分还相当新。

Our situation 我们的情况

We want to fork a repository and use that as a starting point for our own project. 我们希望创建一个存储库,并将其用作我们自己项目的起点。 First, we want to alter some of the code to fit everything to our own needs, but in case we come up with something useful we also want to contribute back to the original project. 首先,我们想更改一些代码以使所有内容都适合我们自己的需求,但是如果我们想出一些有用的东西,我们也希望为原始项目做出贡献。

The problem 问题

The problem we are facing is that we want to use semantic versioning for our project and start at v1.0.0 , however the original repository also uses semantic versioning, so there already is a v1.0.0 tag. 我们面临的问题是我们要为项目使用语义版本控制并从v1.0.0开始,但是原始存储库也使用语义版本控制,因此已经有一个v1.0.0标记。

Is there any way we can maintain our own semantic versioning next to that from the original repository without losing the ability to contribute to the original project? 有什么方法可以在原始存储库旁边维护自己的语义版本设置而又不丧失对原始项目做出贡献的能力? Or do we have this contribution thing completely wrong and should we be doing things differently? 还是我们做出的贡献事情完全错误,我们应该以不同的方式做事吗?

When you fork a repo, you have to work further on their progress so you can push your adjustments back to them. 当您分叉一个仓库时,您必须进一步处理它们的进度,以便可以将调整推回给他们。

If you delete semantic versioning there are going to be collisions when you push your code back to them. 如果删除语义版本控制,则将代码推回到它们时将会发生冲突。 Therefore they will never accept your pull requests. 因此,他们将永远不会接受您的请求请求。

So what you are trying to do is a bad idea. 因此,您尝试做的是一个坏主意。 Maybe you should just clone their project instead of forking. 也许您应该克隆他们的项目而不是分叉。 The downside is you won't be able to contribute. 不利的一面是您将无法做出贡献。

Regards 问候

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

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