본문 바로가기
Programming/git, svn

.gitconfig 설정하기

by 근육곰돌이 2018. 11. 22.
728x90

1. .gitconfig 명령

: .gitconfig - git 사용자 계정 및 alias등 설정등을 조절 할 수 있습니다.


편집 방법

1
vi ~/.gitconfig
cs

파일 편집하여 git config를 설정 할 수 있습니다.




2. .gitconfig 예시 및 아래의 설정 참조

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[core]
    filemode = true
    editor = vim
 
[user]
    name = musclebear
    email = musclebear@도메인
 
[color]
    ui = auto
 
[color "branch"]
    current = yellow bold
    local = green bold
    remote = cyan bold
 
 
[alias]
    co = checkout
    br = branch
    ci = commit
    st = status
    glog = log --graph --oneline --decorate --date=relative --all
    dt = difftool
    d = diff
 
 
[push]
    default = simple
cs


반응형