ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 유용한 git UI app소개와 Git 설치, 초기 환경설정, alias 지정하기
    GIT 2023. 10. 10. 10:07

    1. git UI app 소개와 Git 설치

    1.1 Git UI app 추천

    • git sourctree : 현업에서도 많이 사용함. 간단 명료.
    • git kraken : UI가 아주 잘 구현되어 있다.
    • 적절하게 사용하면 좋다.
    • 다만 git의 다양한 기능을 모두 반영하지 않고, 각 버튼이 어떻게 작용하는지 확인하기 어려우므로
    • 처음 배울 때는 window-cmder, mac-iterm2 등을 통해 공부하는 걸 추천

    [git 설치 확인] 

    git --version

    미설치 시 공식 사이트에서 다운로드 받자

    git 공식 사이트 : http://www.git-scm/com

     

     

    1.2 git 환경 설정

    //현재 환경설정 전체를 보여즘
    git config --list
    
    //환경설정 중 공통부분 편집기를 연다
    git config --global -e
    
    //VSC로 환경설정 편집
    git config --global core.editor "code"
    git config --global -e
    
    //VSC창을 닫기 전까지 CMD가 대기모드
    git config --global core.editor "code --wait"
    git config --global -e
    git config --global user.name "이름"
    git config --global user.email "e-mail 주소"
    
    //carrage-return 설정. git에 저장하고 받아올 때 오류를 잡아줌.
    //window
    git config --global core.autocrlf true
    //mac
    git config --global core.autocrlf input

    현재 git config --list

    [git alias 설정] : 깃 명령어에 별칭을 정해 쓰자

    //status 명령어를 'st'만 입력해도 쓸 수 있게 설정
    git config --global alias.st status
    
    git st

    별칭 잘 지정하면 완전 편하겠다.

Designed by Tistory.