Git repository
- 내 컴퓨터 -> Local Git repository -> Remote Git repository
mkdir my-app
touch index.html
ls
Git repository
를 생성 : git init
Git repository
와 연결staging area
: git add
git status
: staging area
확인staging area
의 파일 => Local repository
에 기록 git commit -m
git reset HEAD^
커밋 확인 : git log
Local repository
<=> Remote repository
: `git remote add <name; 원격 리포지토리 주소를 대신할 이름> git remote -v
Local repository
& Remote repository
연결 확인 : git remote -v
Local repository_commit
=> Remote repository_commet
: `git push <remote_name> <branch_main>