Best practices for where to set up local repositories on Windows 10 | Community
Skip to main content
Level 4
July 31, 2021
Solved

Best practices for where to set up local repositories on Windows 10

  • July 31, 2021
  • 2 replies
  • 2721 views

I'm setting up a new PC and was curious what folder Windows 10 users clone repositories? For example, does it make sense to create a directory under "Documents"? I'll be setting this up for two sites.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by MarkusBullaAdobe

Hi @codelime!

In general, there are no technical requirements with regards to the location where you should keep your AEM instances, source code or other AEM-related files.You can choose whatever fit's best into your way of working and general data hierarchy on your machine. There are a couple of things to take into account, though.

  • In many corporate environments, there will be limitations on where you can or should store working files/data. So this will limit your choices to certain areas on your hard disk. 
  • AFAIK, there are limitations with regards to the maximum number of characters a file path can have on Windows systems. If I remember correctly, this is somewhere around 256 characters for the full path. As you do not have full control over system generated files and structures inside your working directories, you may want to place your root folder at one of the lower levels of the file system and not deeply buried with the root path already consuming 250 characters of that limit.
  • Please also consider backups and syncing (e. g. to an external storage, such as hard disks, NAS or cloud storages) of your files. Is your whole system part of a regular backup? Or are you only syncing certain areas/folders?
  • You probably want to keep your working files on a local disk and only backup/sync them to external storages. While it's possible to place your working environment on e. g. a network share, this will usually have negative effects on performance and you may not be able to work if there are any network issues.

Personally, I have setup a dedicated "Development" hierarchy as a sibling to the default "Documents", "Music" and "Photos" folders within my user directory. I used to have that "Development" folder on the root level of my hard disk but moved it some time ago.

 

Hope that helps!

2 replies

Shashi_Mulugu
Community Advisor
Community Advisor
August 2, 2021

@codelime I think it purely depends on individual choice how to organize your work folders... If I am working on client machines where I will be limited to few git repos.. I will use either Desktop or default git folder.. if I am using office laptop.. I will organize my folder based on year/client/work etc..

MarkusBullaAdobe
Adobe Employee
MarkusBullaAdobeAdobe EmployeeAccepted solution
Adobe Employee
August 2, 2021

Hi @codelime!

In general, there are no technical requirements with regards to the location where you should keep your AEM instances, source code or other AEM-related files.You can choose whatever fit's best into your way of working and general data hierarchy on your machine. There are a couple of things to take into account, though.

  • In many corporate environments, there will be limitations on where you can or should store working files/data. So this will limit your choices to certain areas on your hard disk. 
  • AFAIK, there are limitations with regards to the maximum number of characters a file path can have on Windows systems. If I remember correctly, this is somewhere around 256 characters for the full path. As you do not have full control over system generated files and structures inside your working directories, you may want to place your root folder at one of the lower levels of the file system and not deeply buried with the root path already consuming 250 characters of that limit.
  • Please also consider backups and syncing (e. g. to an external storage, such as hard disks, NAS or cloud storages) of your files. Is your whole system part of a regular backup? Or are you only syncing certain areas/folders?
  • You probably want to keep your working files on a local disk and only backup/sync them to external storages. While it's possible to place your working environment on e. g. a network share, this will usually have negative effects on performance and you may not be able to work if there are any network issues.

Personally, I have setup a dedicated "Development" hierarchy as a sibling to the default "Documents", "Music" and "Photos" folders within my user directory. I used to have that "Development" folder on the root level of my hard disk but moved it some time ago.

 

Hope that helps!