Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Codelime
Level 4
Level 4

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.

1 Accepted Solution
markus_bulla_adobe
Correct answer by
Employee
Employee

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!

View solution in original post

2 Replies
Shashi_Mulugu
Community Advisor
Community Advisor

@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..

markus_bulla_adobe
Correct answer by
Employee
Employee

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!

View solution in original post