svn - How can I have directories in my Git repository which I normally don't check out? -


i'm considering moving subversion website repositories git, i'm not sure how structure new repositories. in svn, structured repos this:

  • branches
  • tags
  • trunk
    • supportdocs
    • webdocs

under trunk have directory support documents (word docs, photoshop files, etc.) , webdocs directory houses actual website.

i checkout webdocs directory use in eclipse. however, git, if make existing trunk root of repo, clone grabs whole thing , makes difficult work webdocs files.

should create 2 repos, 1 support docs , 1 web files? or there way can keep them both in master branch, work subfolder?

you can accomplish using sparse checkouts. note clone still contain other directories, won't have them in working directory.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -