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

Re: Sharing nested subparts of large repository?

From
LLordSmoke <dslice@morphometrics.org>
Date
Mar 28, 2012, 17:52 UTC
Message-ID
<1332957138457-7414676.post@n2.nabble.com>
In-Reply-To
<1332693502389-7403743.post@n2.nabble.com>

Thanks for the helpful replies. It does seem that branches will do what I want. Yesterday, I organized my files and created an (eventually) open-source startup project (distinct from the development application startup).

I created a branch "development" and "git rm"'d the (many) files I didn't want to pass along to my developers. The trick here, I think, is you have to do an initial commit before the rm's or else it will affect the master...or something. Anyway, I had to reset and try a couple of times, but in the end it worked.

After checking out that branch, I created "public", initial commit, then rm'd the development startup project and the other files I wouldn't want to post to the world.

I also managed to push these branches to my remote repository. Add them to my office repository as tracked branches, and test cloning, It works just as I had envisioned - cloning the public branch produces the minimal structure.

I think I am two steps away from complete satisfaction. Not related to this, I have some files that are reluctant to be updated, added, tracked, or untracked, but that's a different issue.

Now, though, I am wondering about merging the changes across branches. Say I make changes on the development branch. If I merge that into the master, will the reduced tracking be merged? - don't want that. If I merge the other way - from, say, checkout public and merge in development? Will a bunch of other stuff come over?

Anyway, that is where I am now and what I am looking into. Very happy with progress, so far.

Oh, while I do everything from the command line, seeing it graphically with gitx has really helped me conceptualize what is going on. All of this has given me a much better understanding of what is going on in the little time I have been able to spend on it.

-- View this message in context: http://git.661346.n2.nabble.com/Sharing-nested-subparts-of-large-repository-tp7403743p7414676.html Sent from the git mailing list archive at Nabble.com.

Previous: Neal KreitzingerNext: LordSmoke
Message 5 of 7 in “Sharing nested subparts of large repository?”
  1. LordSmokeMar 25, 2012
  2. Phil HordMar 26, 2012
  3. Dennis E. SliceMar 26, 2012
  4. Neal KreitzingerMar 28, 2012
  5. LordSmokeMar 28, 2012
  6. LordSmokeMar 29, 2012
  7. LordSmokeApr 5, 2012

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.