Git에서 Repository를 생성하고 Git Bash로 코드를 올려보자.

Repositories(저장소)
- Git Repository는 Git으로 관리하는 프로젝트 저장소
- Local Repository : 사용자 본인의 컴퓨터에 저장된 로컬 버전 프로젝트 저장소
- Remote Repository : 외부 서버의 프로젝트 저장소(로컬X)
- 팀 단위의 작업을 진행할 때 사용
- 코드 공유 및 다른 사람의 코드 확인 가능
- 로컬 버전의 프로젝트와 병합 & 변경 사항 적용도 가능
Git Bash Here 클릭
initialize 해준다.git init

git remote -v

status 로 현재 상태 확인git status
add 를 통해 staging area에 파일 추가git add "파일이름"
$ git add *.txt # 모든 txt 파일만 stage에 올린다.
$ git add hello* # hello로 시작하는 파일명을 가진 것은 전부 stage에 올린다.
git add . # 폴더 내에 있는 파일 전체 add
git add .를 통해 업로드 하면 빨간색에서 초록색으로 바뀐다.
commit git commit -m "Commit message" # 명령어
# 커밋 메시지는 repository에 커밋할 내용을 설명하는 짧은 summary로 작성
$ git commit -am "모든 파일 커밋"
git commit -m "my first commit" # 실제 사용 명령어

git log
push 해보자....or push an existing repository from the command line 부분을 순서대로 진행하였다.
git remote add origin [repository 주소]
git remote -v
git push -u origin master # main일 경우 master -> main으로 변경해 실행
git remote add origin https://github.com/hj4645/TennisProject.git
git remote -v
git push -u origin master # main일 경우 master -> main으로 변경해 실행
# 변경 코드
git branch -M main
git push 명령어를 실행 후 로그인

성공적으로 push 되었다면 다음과 같이 Web GitHub repository 페이지와 GitHub Desktop 버젼에서도 확인할 수 있다.
Web GitHub repository 페이지

GitHub Desktop 버젼
