[TIP] git 설정 정리 (.gitconfig 파일) :: 행복한 프로그래머

posted by 쁘로그램어 2017. 12. 18. 17:07

git 설정에 대해서 정리한다.

참고로 참고 사이트를 보면 설정할 수 있는 정보가 겁나게 많다.


# 사용자 정보 설정

$ git config --global user.name "jhhwang"

$ git config --global user.email jhhwang4195@gmail.com


# 출력 색상 변경

$ git config --global color.ui auto


# diff 도구 설정

$ git config --global merge.tool vimdiff


# git config를 이용한 설정 확인

$ git config --list

user.name=jhhwang

user.email=jhhwang4195@gmail.com

color.ui=auto

push.default=simple

merge.tool=vimdiff

core.repositoryformatversion=0

core.filemode=true

core.bare=false

core.logallrefupdates=true


# ~/.gitconfig 파일 확인

[user]

 name = jhhwang

 email = jhhwang4195@gmail.com


[color]

 ui = auto


[push]

 default = simple


[merge]

 tool = vimdiff


※ 참고 사이트 ※

★★https://gist.github.com/pksunkara/988716

http://goodtogreate.tistory.com/entry/Git-config-%EC%84%A4%EC%A0%95-%EA%B3%84%EC%A0%95%EC%84%A4%EC%A0%95

https://backlog.com/git-tutorial/kr/reference/config.html

https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-config

http://gamdekong.tistory.com/19

http://nipy.org/nibabel/gitwash/configure_git.html

https://www.kernel.org/pub/software/scm/git/docs/git-config.html


■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■

저는 IT 기술에 대해 관심이 많고, 기술적인 토론하는 것을 매우 좋아합니다^^

github following 해주시면 정말로 감사하겠습니다^^

github: https://github.com/jhhwang4195


어떠한 댓글이든 환영합니다^^

댓글 좀 달아주세요^^ (구걸 모드) 

■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■


이 글이 도움이 되셨다면 아래에 있는 "♡공감" 버튼을 클릭해주세요

'버전 관리 > git' 카테고리의 다른 글

[TIP] .gitignore 정리  (0) 2017.12.18
[TIP] git author 정보 관리  (0) 2017.12.18
[TIP] git .bash_aliases  (0) 2017.12.18
[TIP] git 명령어 정리  (0) 2017.12.18
[TIP] git 설명서 및 학습 정보 정리 (작성중..)  (0) 2017.12.18