Skip to content

Instantly share code, notes, and snippets.

@itmuzukashiii
Last active November 7, 2022 03:44
Show Gist options
  • Save itmuzukashiii/3c01ca8dba0eddddef4e1fc2d2388b9f to your computer and use it in GitHub Desktop.
Save itmuzukashiii/3c01ca8dba0eddddef4e1fc2d2388b9f to your computer and use it in GitHub Desktop.
*.bas diff=sjis
*.bat diff=sjis
*.vbs diff=sjis
*.ttl diff=sjis
[alias]
stashall = stash -u
tree = log --oneline -decorate --all --graph
[color]
ui = auto
diff = auto
status = auto
branch = auto
[core]
quotepath = false
autocrlf = false
attributesfile = ~/.gitattributes
sparsecheckout = true
pager = LC_ALL=ja_JP.UTF-8 less -Sx4
[credential]
helper = cache
[diff "sjis"]
textconv = iconv -f cp932 -t utf-8
[merge]
ff = false
[pull]
ff = only
[safe]
directory = *
[user]
name = itmuzukashiii
email = example@example.com
@itmuzukashiii
Copy link
Author

itmuzukashiii commented Nov 7, 2022

Windows だと iconv より nkf のほうが良いかも?
nkf -Sw80 で Shift-JIS から UTF-8N に変換できる.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment