Preparing for team development using Git
Setup procedure
Assuming that Git itself has already been set up, please carry out the following procedure.
- Make sure that
NDMergeis installed.
- Execute the following command.
git config --global merge.NDMerge.name
- If
NDMergeis installed, the following response will be returned.nd diff merge application
NDMergeis automatically installed in the Next Design installation folder when installing the Next Design main body.
If it is not installed, reinstall the Next Design main body.
Please note that if you install Next Design later in an environment where NDMerge is installed, the existing settings will be overwritten.
- Set gitattributes.
- You need to set gitattributes to link
NDMergewhen merging Next Design model files with Git. Here, we will explain how to set it per repository and per user.
How to set it per repository
- Create and place a
.gitattributesfile in the Git repository you want to set. - 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 the Git repository.
How to set for each user
-
Create and place the
.gitattributesfile anywhere in the 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/>
-
Run the following command to set the placed
.gitattributesfile to the global environment.git config --global core.attributesfile [absolute path to .gitattributes file]
-
Install
NDGit.
- Please refer to here to install.
- Register the Next Design project file in Git.
- Add the project file to be registered to the local repository, and commit and push it.
Next Design has two file saving formats: DB format and JSON format.
If you save in JSON format, you can check the differences in text format.
For information on how to write in JSON format and display the differences, please refer to here.
When using Git, file names may be garbled in the repository commit history.
For information on how to prevent garbled characters, please refer to here.