Skip to content

Question about Git and branches for experiments

1 pointrajatdiscuss
On HN

Following up on a prior discussion about Git tutorials vs. workflows, here's a question about Git workflow in a particular situation:

I am working on a project that involves evaluating two different libraries for a specific function. I have it implemented with the first library, and am about to implement the code to use the second library.

So, what are the relative pros and cons of using branches vs. cloning the code? Is it simply a matter of preference? When is one approach preferable over the other?

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.