r/github • • 15m ago

Question Forking a project.

I've never forked anything before so I'm unsure what's the right procedure. I want to take an open source project and create a derivative work. The code is under GPL, so I have the right to modify it and redistribute it provided I keep the source open, right?

The question is should I fork the project or just clone it? I'm not really interested in making pull requests and I don't know they even make sense in the first place as I'm going to change their core api so they don't gain much from merging my fork.

I have a ton of questions. If I fork I create a kinda link to the upstream project. Can they see my fork? Having a fork makes it easier to sync the project with them, and that's the only benefit as I see it.

What if I delete parts of the project can I still sync with the upstream branch? Will I get back the deleted parts or trigger an error? I'm only interested in their core library, the satellite libraries are no interest to me.

I will rename the project and wrap all their classes in a HAL layer so I can keep my api independent of their unstable one. If I keep the project local is there still some way of pulling down changes from upstream and merging them with my local branch?

1 Upvotes

2 comments sorted by

1

u/rhutroh 1m ago

you are overthinking this.

1

u/Bali10050 1m ago

Not every fork needs to be merged.

Can they see my fork?

Yes they can

What if I delete parts of the project can I still sync with the upstream branch? Will I get back the deleted parts or trigger an error? I'm only interested in their core library, the satellite libraries are no interest to me.

Depends.

I will rename the project and wrap all their classes in a HAL layer so I can keep my api independent of their unstable one. If I keep the project local is there still some way of pulling down changes from upstream and merging them with my local branch?

You can just do things on your machine, you don't need to upload to github