diff
YAML while version controlling (by Git)npm install -g yml-sorter
%AppData%\npm
.~/bin
(/c/Users/<user-name>/bin
) is built in the PATH
environment variable of Git Bash.yaml-sort.bat
.
%ProgramFiles%\nodejs
for node
.%AppData%\npm
for yml-sorter
.@path %ProgramFiles%\nodejs;%AppData%\npm
@yml-sorter -di "%~1" 2> nul
git config diff.yaml.textconv yaml-sort.bat
.gitattribute
: *.yml diff=yaml
Check Customizing Git - Git Attributes for more details.