- gitTest.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <h1>첫 번째 커밋</h1> </body> </html>
cd로 작업 폴더로 이동
git init
git config --global user.name "이름"
git config --global user.email "이메일"
커밋(내 로컬에서 커밋할때),(다른 주소를 커밋할때는 4번을 먼저)
3-1. git add 커밋할 프로젝트 => 커밋 활성화 단계
3-2. git commit -m "커밋 메시지" => 커밋 진행 단계(의무사항)
git remote add origin 주소
git push origin master
git pull origin master
참고)
https://verdant-structure-e78.notion.site/Git-a9eefbccbc89495397d196172b8bcf85