git config --list -> git 기본 정보 조회
git config --global user.name "Name" -> 사용자 정보 등록
git config --global user.email "E-mail"
git init -> git 폴더 생성
git status -> git 상태 조회
git add . -> git에 파일 추가
git log -> 깃 작업내역 조회
git commit -m "first commit" -> 커밋하고 커밋 이름을 입력
github 에서 repository 정보를 가져옴
…or create a new repository on the command line
echo "# Sesac_ml" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/깃허브주소.git
git push -u origin main
밑 두줄을 입력해서 push하면 완료
git clone -> repository를 전체 내려받기를 할 때 사용
git pull -> 업데이트된 내용을 내려받을 때 사용
업데이트된 내용이 없으므로 변경하지 않았음. 커밋을 하고 다시 pull작업
커밋 작업
git reset --option 돌아갈 커밋 -> 원하는 커밋 시점으로 돌아감
--soft -> 변경 이력은 사라지지만 내용은 남음
--hard -> 변경 이력과 내용이 모두 사라짐
git push origin main --force -> github에 덮어쓰기