Owl Life

.gitconfig 설정 본문

Git

.gitconfig 설정

Owl Life 2017. 12. 3. 21:22
반응형

1. 아래 명령어로 설정 파일 편집

   $ vi ~/.gitconfig 

 

2. 아래 명령어들 사용. 필요시 계속 해서 업뎃할 것

[user]

name = OwlLife

email = owllife@gmail.com

 

[push]

default = simple

 

[color "diff"]

    meta = yellow bold

    frag = magenta bold

    old = red bold

    new = green bold

    whitespace = red reverse

 

[color]

    ui = auto

 

[color "branch"]

    current = yellow bold

    local = green bold

    remote = cyan bold

 

[alias]

l = log --pretty=format:\"%h %ad | %s%d : [%an]\" --graph --date=short

    co = checkout

    ci = commit

    st = status

    br = branch

    pu = push

    puf = push -f

    p = pull

    pr = pull --rebase

    rh = reset --hard HEAD

    type = cat-file -t

    dump = cat-file -p

 

[core]

autocrlf = input

 

[credential]

helper = store 

 

반응형

'Git' 카테고리의 다른 글

.gitignore 가 정상적으로 동작하지 않을때 해결책  (0) 2019.10.30
Comments