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

Re: Push from specific directory.

From
NKNeal Kreitzinger <nkreitzinger@gmail.com>
Date
Mar 23, 2012, 15:30 UTC
Message-ID
<4F6C970B.2010803@gmail.com>
In-Reply-To
<BLU0-SMTP315865C5026D08E76594E5DB1460@phx.gbl>
On 3/23/2012 8:35 AM, Anjib Mulepati wrote:
Show 9 quoted lines
> I  am comparing Git with other SVN.
>
> In SVN each folders have .svn folder. If we don't wanna track 
> particular folder then there is no .svn folder in that directory. In 
> Git does we have same structure?
>
> So the example I am giving here represent two versions and one 
> non-version folder.
>

There is only one .git dir per git repo. By default it is created under the top-level dir (worktree) of the repo. If you don't want to track a subdir then you ignore it using the gitignore technology of git. You would want to setup the gitignore before doing the init.

v/r, neal

Previous: Neal KreitzingerNext: Holger Hellmuth
Message 9 of 11 in “Push from specific directory.”
  1. Anjib MulepatiMar 22, 2012
  2. Jeff KingMar 22, 2012
  3. Neal KreitzingerMar 22, 2012
  4. Jeff KingMar 22, 2012
  5. Neal KreitzingerMar 22, 2012
  6. Junio C HamanoMar 22, 2012
  7. Neal KreitzingerMar 23, 2012
  8. Neal KreitzingerMar 23, 2012
  9. Neal KreitzingerMar 23, 2012
  10. Holger HellmuthMar 26, 2012
  11. Neal KreitzingerMar 26, 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.