git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: Fork or branch?

From
Peter Jönsson P <peter.p.jonsson@ericsson.com>
Date
Apr 21, 2011, 13:23 UTC
Message-ID
<41F80411E3CC644A844E6BED6E472FD91AE14979CC@ESESSCMS0363.eemea.ericsson.se>
In-Reply-To
<1303390999618-6293910.post@n2.nabble.com>
Hi!
Will you be sharing anything between the projects? If you have data that will be shared between the two different implementations it would be enough with just a simple directory structure while still inside the same git repo.
repo.git:
 - <python based>
 - <c based>
 - ... 
 - <some other language based>
 - shared_data
Just create a new branch on the current code based and start working on the C based one. Then you can merge it back to the "main" code line if it works out.
Good luck!
// Peter
-----Original Message-----
From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On Behalf Of adam_kb
Sent: den 21 april 2011 15:03
To: git@vger.kernel.org
Subject: Fork or branch?
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? 

-- View this message in context: http://git.661346.n2.nabble.com/Fork-or-branch-tp6293910p6293910.html Sent from the git mailing list archive at Nabble.com. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Previous: adam_kbNext: Jakub Narebski
Message 2 of 5 in “Fork or branch?”
  1. adam_kbApr 21, 2011
  2. Peter Jönsson PApr 21, 2011
  3. Jakub NarebskiApr 21, 2011
  4. Dmitry PotapovApr 21, 2011
  5. Jonathan NiederApr 21, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.