•
git 설정 및 내용 정리
◦
최초 설정
git config --global user.name "본인이름"
git config --global user.email "본인 이메일 주소"
# 확인
git config --list
Plain Text
복사
◦
저장소 만들기
git init
Plain Text
복사
◦
추가할 파일 더하기
git add .
Plain Text
복사
◦
상태 확인
git status
Plain Text
복사
◦
커밋
git commit -m "메세지"
Plain Text
복사
◦
repository와 나의 로컬 프로젝트 연결
git remote add origin https://github.com/minsung/test.git
Plain Text
복사
◦
잘 연결되었는지 확인
git remote -v
Plain Text
복사
◦
깃허브에 업로드 (push)
git push origin main
Plain Text
복사
◦
커밋 되돌리기
git reset --soft HEAD~1
Plain Text
복사