
동기 비동기, 콜백함수
Promise
git init 명령어 입력 (이 폴더를 Git으로 관리하겠다는 의미)ls -la 명령어로 .git 폴더 생성 확인git status 입력
git add index.html(파일 추가) 또는 git rm --cached index.html(추적 제거)git add .
git config --global user.name "Your Name"git config --global user.email "youremail@example.com"git config --listgit commit -m "커밋 메시지" 입력git commit -m "초기 파일 추가")git remote add origin https://github.com/username/repository.gitgit remote add origin git@github.com:username/repository.gitgit push -u origin maingit pushHTTPS와 SSH의 주요 차이점:
cd ~/.ssh
ssh-keygen -t rsa -C "your_github_email@example.com"
# ~/.ssh/config
# GitHub 기본 설정
Host github.com
HostName github.com
IdentityFile ~/.ssh/id_rsa
User git
cat ~/.ssh/id_rsa.깃허브아이디.pub 🌪️ 폭풍같은 하루였다. 어려운 건 다 지나간 줄 알았는데 아니었어... 강사님이 코드 리딩해 주실 때는 분명 안다고 생각했는데 혼자 정리해 보면 또 헷갈린다. 반복이 답인 것 같다.
그래도 이전엔 아무것도 모르고 fatch.then.then을 공식마냥 썼는데(그마저도 gpt를 곁들인) Promise를 배우고 보니 조금은 이해할 수 있게 됐다.