Moonss
Moon's
Moonss
전체 방문자
오늘
어제
  • 분류 전체보기 (24)
    • 환경 설정 (2)
    • git 사용법 (2)
    • Pandas (1)
    • 알고리즘 (7)
    • Pytorch (4)
    • GCP 환경 설정 (1)
    • cs231n (0)
    • Error (1)
    • 데이터 분석 (1)
    • 작성 전 글 저장 (0)

블로그 메뉴

  • ABOUT
  • POST
  • GUEST BOOK

공지사항

인기 글

태그

  • git config
  • error
  • 환경설정
  • 알고리즘
  • ifconfig
  • github
  • gcp
  • git init
  • git
  • BIG-O
  • GPU
  • user.email
  • git config --global
  • Linux OS
  • Linux
  • git config global --unset
  • Python
  • git config --unset
  • 3d
  • user.name
  • IP
  • 가상환경
  • Blender

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
Moonss

Moon's

Git-Github 사용법 - 1) 초기 세팅(git config) 및 수정
git 사용법

Git-Github 사용법 - 1) 초기 세팅(git config) 및 수정

2023. 1. 23. 01:07

Setting 

- Git 설치 후 사용자이름과 이메일 주소를 설정하는 코드이다. 

- Git은 Repository에 커밋 할 때마다 아래에 설정하는 정보를 사용한다. --global 옵션을 사용하면, 설정하는 것은 딱 한번만 하면 된다. 단 공유 서버일 경우 주의해야한다. 

- 공용컴퓨터(서버)일 경우 Repository(Directory)마다 --global옵션을 뺀 채로 세팅 해주면 된다.  

생성

Setting for single repository 

git config user.name "JaeYunMoon"
git config user.email example@gmail.com

Setting --global

git config --global user.name "JaeYunMoon" 
git config --global user.email example@example.com

확인 

git config --list

# 특정 값만 확인 할 때 
git config user.name

 

삭제(변경)

 git config 설정 삭제 

$git config --global --unset user.name
$git config --unset user.name

$git config --global --unset user.email
$git config --unset user.email

git config의 설정을 삭제 하고 싶을 때 위 코드를 사용하면 된다. 변경 시엔 삭제 후 재설정을 하면 된다.

위 설정 했던 코드에서 어떤 설정을 했었는가에 따라 코드가 조금 달라진다. 

저작자표시 (새창열림)

'git 사용법' 카테고리의 다른 글

Git-Github 사용법 2)git add,commit,push  (2) 2024.03.19
    'git 사용법' 카테고리의 다른 글
    • Git-Github 사용법 2)git add,commit,push
    Moonss
    Moonss

    티스토리툴바