첫 git push

김태현·2022년 2월 18일
0

Git

목록 보기
2/4
post-thumbnail

push 오류

해결 방법
: github에서 personal token 받고 암호에 토큰 입력

git config

Git 최초 설정: 사용자 이름과 이메일 설정하는 방법

$ git config --global user.name <username>
$ git config --global user.email <useremail>

궁금한 점

  1. git config —global user.name 뒤에 따옴표 안에 이름 작성 안해도 되나?
    : 상관 없는 듯
    이유 : 오류 없음
    → 그렇지만 작성하자!

  2. push 시 입력하는 username은 1에서 세팅한 이름인가? github 닉네임과 관련 없나?
    : 1에서 세팅한 이름으로 user.email과 엮어서 저장한 것?
    Yes(cat ~/.gitconfig → name & email)
    : 해당 이메일로 깃허브 계정에 push 되는 것?
    Yes
    : 깃 허브 닉네임과는 관련?
    No

$ cat .git/config

git config 로 설정한 email과 username 확인 가능

profile
iOS 공부 중

0개의 댓글