3

[Git] gitconfig설정

메인설정(global) $ git config --global user.name "이름" $ git config --global user.email "메일주소" 위에와 같이 설정을 하게 되면 ~/.gitconfig 에 아래와 같이 설정이 들어가게 된다 # This is Git's per-user configuration file. [user] name = 이름 email = 메일주소 서브설정 회사프로젝트랑 개인프로젝트로 설정을 변경하는 경우 $ cd ../프로젝트path/ $ git config --local user.name "이름" $ git config --local user.email "주소" ※프로젝트리포지토리안에 있는 ./.git/config에 설정내용이 들어가게 됨 설정확인 $ git con..

IT 노트/Git 2021.09.23

[Git] 로컬프로젝트를 git init해서 gitHub/gitLab에 push하기까지

GitHub/gitLab에서 리포지토리를 작성한다 로컬에서 작업중인 프로젝트를 git init $ git init $ git add . $ git commit -m ':tada: First commit'​ 리모트 리포지토리(GitHub/gitLab에서 만든 리포지토리)를 등록 $ git remote add origin git@github.com:user/xxx.git push $ git push origin master 브런치를 전부 push하는 경우에는 이렇게 $ git push -u origin --all

IT 노트/Git 2021.09.21
반응형