git이 택배 기사님이면, github는 물류센터 같은 것.
둘은 서로 다르다.
git config --global init.defaultBranch main
git config --global user.name "이름"
git config --global user.email "이메일@이메일.com"
git config --list
# --global은 global 설정 파일에 대한 명령어
# local > global > system 영향력이 큰 순이다.
# git config --list로 현재 상황을 볼 수 있다.
# git config --get init.defaultBranch는 현재 메인 브랜치의 이름을 알 수 있다.
# git config --show-origin user.name은 어떤 설정 파일로 부터 설정됐는지 알려준다.
#.git/config=> local 파일 /// c:프로젝트폴더/.gitconfig => global 파일
git init
git status
git add .
git status
git commit -m "first commit"
git log
#조회 상태에서 나가는 단축키는 Q 버튼!
git remote -v
git remote add origin http://git주소.git
git remote remove origin
#주소를 잘못 입력했을 경우 삭제하는 명령어
git remote -v
git push origin main