How to install NDMerge
Shows how to install NDMerge.
Installation procedure
- Download the complete NDMerge file from the support site below.
Attention
After downloading the zip file, remove the security protection as follows and then extract the file.
(1) Right-click the zip file to display [Properties].
(2) Read the [Security] description displayed at the bottom of the [General] tab, check the [Allow] check box on the right, and click the [OK] button.
Unzip and store the file in any location.
Start a command prompt and move to the above storage folder.
Execute the following command.
ndmerge git-setup install
- See here for commands.
Follow the steps in "Setting the .gitattributes file" below to set up the file.
- These steps are set to work with
NDMergewhen you run a Git merge command.
To run this program, you need to install .NET Core 3.1.
- These steps are set to work with
Confirmation after installation
- If you execute the
setupcommand ofNDMerge, it will be set togitconfigof the global environment (per OS login user).- You can check the set contents by executing the following command.
ndmerge git-setup list
- If the item
merge.NDMerge.driveris added to the settings, it is set correctly. - Execution example
> ndmerge git-setup list
exec: git config merge.NDMerge.name
nd diff merge application
exec: git config merge.NDMerge.driver
'[Absolute path for each user environment]/ndmerge.exe' merge -o% A -t% B -b% O -m% A -p% P -l warn
- You can check the set contents by executing the following command.
Attention
NDMergewill not work if the path set ingitconfigis different from the location of the storage folder.
If you move the storage folder, execute thesetupcommand again to update thegitconfigsettings.
.gitattributes file settings
By setting the .gitattributes file of the Git global environment, NDMerge will be linked when merging the model file of Next Design etc. in Git.
.gitattributes settings
Create and place a
.gitattributesfile anywhere in your local PC environment.Execute the following command to set the placed
.gitattributesfile to the global environment.git config --global core.attributesfile [absolute path to .gitattributes file]
Add the following content to the
.gitattributesfile.#NDMerge
* .nproj merge = NDMerge
* .nmdl merge = NDMerge
* .nprof merge = NDMerge
* .iproj merge = NDMerge
* .imdl merge = NDMerge
* .iprof merge = NDMerge
If .gitattributes is already set
- If you have already created and set the
.gitattirbutesfile, check it with the following command.git config --global core.attributesfile
Update procedure
If you already have NDMerge installed, follow these steps to update to a newer version of NDMerge.
- Download the new version of the NDMerge file set from the support site below.
Attention
After downloading the zip file, remove the security protection as follows and then extract the file.
(1) Right-click the zip file to display [Properties].
(2) Read the [Security] description displayed at the bottom of the [General] tab, check the [Allow] check box on the right, and click the [OK] button.
Extract the new version of the
NDMergezip file.Overwrite the files in the installed
NDMergeinstallation folder with the files extracted above.
Confirmation after update
- To check if the update was successful, go to the
NDMergeinstallation folder at the command prompt and execute the following command.ndmerge --version
Uninstall procedure
- Start a command prompt and change to the installation folder of
NDMerge. - Execute the following command.
ndmerge git-setup uninstall uninstall
- Delete the contents described in the
.gitattributesfile in .gitattributes setting. - If the settings other than
NDMergeare not described in the.gitattributesfile, execute the following command.git config --global --unset core.attributesfile
- Delete all the files in the installation folder.