DEV Community

Cover image for 6 Differences you must know when using Forking Vs using Branching
Pragyan Tripathi
Pragyan Tripathi

Posted on

6 Differences you must know when using Forking Vs using Branching

Do you want to improve collaboration and streamline your development process?

Forking and Branching are powerful features of version control systems that allow you to make your own copy of a code repository, work on it independently and merge changes back in when you're ready.

Here are 6 differences you must know when choosing between Forking Vs Branching:

Difference 1

Forking keeps branches separated by users. Vs Branching keeps all of the work being done around a project in one place.

Difference 2

Forking reduces clutter in the main repo. Vs Branching increases clutter in the main repo.

Difference 3

In forking, it is difficult to see all the active branches. Vs In branching, you can see all the branches in one place.

Difference 4

In forking, it is simple to set up external contributions. Vs In branching, the external contribution is difficult.

Difference 5

In forking, collaborating on a single branch is trickier. Vs In branching, all collaborators can push to the same branch to collaborate on it.

Difference 6

In forking, you need to understand the concept of multiple remotes in Git. Vs In branching, there's only one Git remote to deal with.

Image description

Thanks for reading this.

If you have an idea and want to build your product around it, schedule a call with me.

If you want to learn more in DevOps and Backend space, follow me.

If you want to connect, reach out to me on Twitter and LinkedIn.

Top comments (0)