Help us understand the problem. What is going on with this article?

おれのgit config

More than 3 years have passed since last update.

毎回「git config オススメ」とかで調べるのがめんどくさいので自分用に作ります。

最初にこれ

普通にシェルのエイリアス設定しときます。

alias g="git"

それから、--global 打つのがダルいので。

g config --global alias.cfg "config --global"

設定

[core]
    excludesfile = ~/.gitignore_global
    autocrlf = false
    pager = less -r
    editor = vim
    precomposeunicode = true
    quotepath = false
[alias]
    cfg = config --global
    c = commit
    p = push
    pl = pull
    a = add
    b = branch
    rmt = remote -v
    co = checkout
    m = merge
    df = diff
    st = status
    f = fetch --all -p
    rsh = reset --hard
    fp = fetch origin+refs/pull*:refs/remotes/pull/*
[color]
    ui = auto
[push]
    default = current
[pull]
    rebase = true
[hub]
    protocol = https
[credential]
    helper = gcloud.sh
[pager]
    log = diff-highlight | less
    show = diff-highlight | less
    diff = diff-highlight | less
[diff]
    compactionHeuristic = true
g cfg core.excludesfile ~/.gitignore
g cfg core.autocrlf false
g cfg core.pager "less -r"
g cfg core.editor vim
g cfg color.ui auto
g cfg core.precomposeunicode true
g cfg core.quotepath false
g cfg push.default current
g cfg pull.rebase true

alias

ここは完全に趣味ですよね

[alias]
    cfg = config --global
    c = commit
    p = push
    pl = pull
    a = add
    b = branch
    rmt = remote -v
    co = checkout
    m = merge
    df = diff
    st = status
    f = fetch --all -p
    rsh = reset --hard
    fp = fetch origin+refs/pull*:refs/remotes/pull/*
g cfg alias.c "commit -v"
g cfg alias.b branch
g cfg alias.co checkout
g cfg alias.p push
g cfg alias.st status
g cfg alias.df diff
g cfg alias.rmt "remote -v"
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした