-
Notifications
You must be signed in to change notification settings - Fork 23
Git Tips
cdmgtri edited this page Oct 23, 2018
·
2 revisions
The following are tips and tricks for using git on the command line with a cloned copy of the NIEM releases repo.
One piece of the NIEM architecture is that old things never go away and that multiple releases can work together. To support that, files are placed in unique locations or with unique names for each release. This hinders GitHub's basic diff view for those files. You can get close to that visual comparison of changes with git diff --word-diff=color
.
For example, to compare NIEM Core 3.2 and Core 4.0, run the command:
git diff --word-diff=color niem-3.2:niem/niem-core/3.0/niem-core.xsd niem-4.0:niem/niem-core/4.0/niem-core.xsd
Sample results: