In this post I want to share some details with you about how we use Git with Microsoft Dynamics 365 for Finance and Operation. This will only be a starting point because I´ve a lot of other Git related topics in my “backlog”.
First of all I want to clarify that using Git in combination with MSDyn365FO is not officially supported by Microsoft, yet. However we are using Git for a long time for our product (ISV) development process and we are using Git in every new implementation project. I will not cover the initial setup (create repo; .gitIgnore; …) of a Git repository because there is already a post from Nathan Clouse which you can find behind the following link: http://www.atomicax.com/article/giting-started-git-d365fo-and-other-puns
My starting point is the tool we are currently using to manage the Gitflows for/during ALM. We are using Fork which is able to handle multiple repositories, can perform almost all Git commands and has a rich well design UI. In one of my next posts I want to talk a bit more about how to use this awesome tool for Gitflows during implementation. In this post a want to highlight the feature: “Initialize Git flow…”which is very useful when you recently created a new repository. Using this feature will create the master and develop branch and define the prefixes for feature, release and hotfix branches. If you want to read more about git flow workflow please follow this link: https://nvie.com/posts/a-successful-git-branching-model/
Back to the main topic of this post… using git with MSDyn365FO. I want to describe one major aspect of “our” Git integration in the development process of MSDyn365FO because we are using symbolic links in the AOS folder, pointing to the repository folder. With this process we are able to use multiple repositories within the same development environment and we can use the same folder structure in the repository as in TFVS repositories. To create a symbolic link for your repository you have to execute a PowerShell script similar to registerSymbolicLink.ps1 in your repository folder. If you want to get rid of the link, you can simply delete the folder from your AOS folder or execute a PowerShell script similar to unregisterSymbolicLink.ps1 in your repository folder. After creating a new symbolic link in a development environment you of course have to compile the added package.