Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Last active April 24, 2024 06:38
Show Gist options
  • Save chuck0523/f48702f022c6eab7ab250915232e6fdb to your computer and use it in GitHub Desktop.
Save chuck0523/f48702f022c6eab7ab250915232e6fdb to your computer and use it in GitHub Desktop.
[core]
excludesfile = /path/to/.gitignore_global
# ↓↓文字化け対策ここから (http://www-creators.com/archives/78)
pager = less -cm
quotepath = false
editor = vim
# ↑↑文字化け対策ここまで
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[alias]
st = status
br = branch
co = checkout
ad = !"git add ."
override = !"git commit --amend --no-edit"
take = !"git cherry-pick -n"
abort = !"git add . && git stash"
cancel = !"git reset --hard HEAD^"
done = "!f() { git abort && git checkout master && git branch -D @{-1}; }; f"
push-f = !"git push --force-with-lease --force-if-includes"
[user]
name = "my name"
email = my email address
[color]
ui = true
[pager]
branch = cat
[commit]
template = /path/to/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment