Question

i am planning to use GIT for source control. How can i like add additional attribute to every file? i.e. IP Address, HDD Folder location

Planning to have Git with configuration management, for source code deployment.

Was it helpful?

Solution

Git just manages files on your hard disk. If you want to add additional attributes to each file, you must find a way to represent those attributes as new files on your hard disk.

A common solution is to add a folder with config files for a build system.

So when you have made your changes, you check them out on the server in a safe place (i.e. not where you want the files finally to end up). Then you invoke the build system which takes the additional files, figures out which original files need to be copied where and does it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top