Preparing for team development with Git
Setup Instructions
Assuming that Git has already been set up, follow the steps below.
- Make sure
NDMergeis installed.- Execute the following command.
git config --global merge.NDMerge.name
- If
NDMergeis installed, you will get the following response.nd diff merge application
- If
NDMergeis not installed, please refer to here to installNDMerge.
- Execute the following command.
NDMerge is automatically installed in Next Design's installation folder when Next Design is installed.
Please note that if you install Next Design later on where NDMerge is installed, your existing settings will be overwritten.
-
Set gitattributes.
-
It is necessary to set gitattributes in order to link
NDMergewhen merging Next Design model files with Git. This section explains how to set for each repository and how to set for each user.How to set for each repository
- Create and place a
.gitattributesfile in the Git repository you want to configure. - 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<br/> - Commit and push the
.gitattributesfile to your Git repository.
How to set for each user
- Create and place a
.gitattributesfile anywhere in your local PC environment. - 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<br/> - Execute the following command to set the placed
.gitattributesfile in the global environment.git config --global core.attributesfile [absolute path to .gitattributes file]
- Create and place a
-
-
Install
NDGit.- See here to install.
-
Register the Next Design project file in Git.
- Add the project file to be registered to the local repository, and commit/push it.
- Add the project file to be registered to the local repository, and commit/push it.
Next Design has two file saving formats, DB format and JSON format.
If you save in JSON format, you will be able to check the difference in text format.
Refer to here for the JSON format notation method and the difference display.
When using Git, filenames may be garbled in the commit history of the repository.
See here for how to prevent garbled characters.