Re: Fork or branch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 21, 2011 at 06:03:19AM -0700, adam_kb wrote:
> I am new to git and understand most of it except for merge. My question is -
> if I have project X on branch master and its coded in python but I then want
> to take that same project and code it in say C or C++ would I fork or branch
> the project? 

It depends whether you want to have separate repositories (with separate
working tree) or you want to have in the same repository. Actually, it
does not matter all that much what decision you make now, you can always
change that later -- it is very easy to unite two repositories in one,
and, on contrary, it is always possible to split branches. Obviously, if
you split branches having some common commits, each clone will have them.

Personally, if I re-wrote some Python code in C or C++, I would probably
make a separate clone just to have two working tree. If necessary, it
is possible to merge changes between them using 'git pull'.


Dmitry
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]