DEV Community

Rounit Ranjan Sinha
Rounit Ranjan Sinha

Posted on

Git vs GitHub(cake version)

While talking about Git and GitHub, generally people gets confused in these two and assume these two same, but what we have to do LOL
hum toh chalo cake khane !

๐‚๐š๐ค๐ž ๐’๐ก๐จ๐ฉ ๐š๐ฌ ๐š ๐๐ซ๐จ๐ฃ๐ž๐œ๐ญ:

Rounit's Bakery (Project): The cake shop is a project, and the cakes you bake are the different versions or stages of the project.

๐†๐ข๐ญ as a ๐‘๐ž๐œ๐ข๐ฉ๐ž ๐๐จ๐จ๐ค:

Recipe Book (Git): The recipe book is like Git. It keeps track of all the recipes (code) and any changes made to them over time. Each chef (developer) can have their own copy of the recipe book.

๐†๐ข๐ญ๐‡๐ฎ๐› as a ๐‚๐ž๐ง๐ญ๐ซ๐š๐ฅ๐ข๐ณ๐ž๐ ๐๐š๐ค๐ž๐ซ๐ฒ:

Bakery Headquarters (GitHub): The bakery headquarters is like GitHub. It's a central place where all the recipe books (Git repositories) are stored. Chefs (developers) can share their recipes, collaborate on new cakes, and review each other's work.

๐๐ซ๐š๐ง๐œ๐ก๐ž๐ฌ as ๐ƒ๐ข๐Ÿ๐Ÿ๐ž๐ซ๐ž๐ง๐ญ ๐‚๐š๐ค๐ž ๐…๐ฅ๐š๐ฏ๐จ๐ซ๐ฌ:

Cake Flavors (Branches): Imagine you have different branches for different cake flavors. Each branch represents a different development path or feature. For example, there's a "Chocolate" branch and a "Vanilla" branch.

๐‚๐จ๐ฆ๐ฆ๐ข๐ญ๐ฌ a ๐‚๐š๐ค๐ž ๐‘๐ž๐œ๐ข๐ฉ๐ž๐ฌ:

Cake Recipe (Commit):

Each commit is like a specific recipe in the recipe book. It represents a snapshot of the cake at a particular point in time. Chefs (developers) can add new recipes (commits) to the book as they make changes to the cake.

๐๐ฎ๐ฅ๐ฅ ๐‘๐ž๐ช๐ฎ๐ž๐ฌ๐ญ๐ฌ as ๐‚๐š๐ค๐ž ๐‘๐ž๐ฏ๐ข๐ž๐ฐ๐ฌ
Cake Review (Pull Request): When a chef (developer) finishes baking a new cake layer or toppings (feature), they can submit it for review. This is like creating a pull request. Other chefs can review the cake, suggest changes, and decide whether to merge the new flavor into the main collection.

Cake khate raho, seekhte raho!

Follow #rounitsinha

Top comments (0)