[오늘의 공부]/git
[git] git 설치
돈워리비햅삐
2023. 6. 1. 21:40
git 을 쓰는 이유 ? 형상관리하려고 (작업한 코드저장, 과거 작업내역을 볼수있고,,, 안정적 개발가능)
git 설치 방법
[Mac]
Homebrew 다운받아서 터미널 명령어 입력해서 설치하기
[Window]
git windows 검색해서 다운받기 (override name을 main으로 해두기)
다운로드 후
작업할 폴더에서 PowerShell 혹은 터미널 열고
git config --global init.defaultBranch main
git config --global core.editor "code --wait"
ㄴ입력해서 main이라는 이름을 기본브랜치로 vscode를 기본 에디터로 설정
git config --global user.email "깃아이디이메일"
git config --global user.name "깃에서 쓰는 마이네임"
ㄴ내 정보 등록