git 명령어
1. git 다운로드
https://www.git-scm.com/downloads
Git - Downloads
Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp
www.git-scm.com
git --version
2. git 명령어
git init
로컬 저장소 생성
git clone https://github.com/@@@/repository
원격 저장소로부터 로컬에 소스 다운 (git remote add + git pull과 비슷)
git checkout branch
branch로 브랜치 전환
git add test.py
git add .
스테이지 영역에 추가
git commit -m "message"
"message" 메세지로 로컬 저장소에 커밋
git remote add origin https://github.com/@@@/repository
원격 저장소 추가
git pull
git fetch + git merge
git push -u origin main
main 브랜치에 push
config
git config --global user.name "Your Name"
git config --global user.email "Your email"
# 한글 출력 오류 방지
git config --global core.quotepath false