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

git-subtree checkout under alternate foldername (git version 2.8.1.windows.1)

From
TTtermnml tml <termnml@gmail.com>
Date
Apr 29, 2016, 12:33 UTC
Message-ID
<CAEDerUrtWSeka5Er4FqktWvPWkD53VqQpvawu9DNtY-JKbMg8Q@mail.gmail.com>
Hi people.
I want to creat a git repo with two upstreams.

The first is the root of JointsWP (https://github.com/JeremyEnglert/JointsWP ) going straight to my root (repo /). No problem with this upstream-jointswp.

The second is the sub dir /templates of WooComerce ( https://github.com/woothemes/woocommerce). he content in this one should go directly into my subdir /woocommerce.

I was able to do a sparseCheckout to only catch the /templates subdir of the upstream(-woocommerce:/templates). Now I want to "mv or rename" the checked out /templates to /woocommerce. I want to keep full track of the commits done to /templates in the upstream-channel.

Or is the git-subtree the wrong way to go?

Stackoverflow: http://stackoverflow.com/questions/36894522/git-subtree-checkout-specific-folder-under-other-name

Thank you great folks.

PS: Sorry if this is the wrong place for my question. Got a headsup to try here. ;)

Message 1 of 1 in “git-subtree checkout under alternate foldername (git version 2.8.1.windows.1)”
  1. termnml tmlApr 29, 2016

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.