7개의 파일을 작업했다.
삭제 team.html
수정 about.html
수정 about.css
-> 멤버와 관련된 작업
추가 navbar.html
추가 navbar.css
추가 navbar.js
추가 logo.png
-> 네비게이션과 관련된 작업
오늘 작업한 파일을 멤버에 대한 페이지와 네이게션바에 관련된 작업으로 분류할 수 있으므로 두개의 chechpoint를 만들고 싶다.
먼저 git add team.html about.html about.css로 멈버에 관련한 작업물을 묶어 준다.
git commit로 git repo에 check point를 만든다.
그후 git add navbar.html navbar.css navbar.js logo.png을 또 묶어준다.
git commit로 checkpoint를 만든다
git add -> 파일 구분은 스페이스바로 한다
git commit -m "" : git commit에 대해 메세지를 입력해야한다. git commit메세지는 각각의 commit에 대한 정보를 파악하는데 도움이 된다. git commit만 치면 에러뜰 수 있음
해당 repository의 git commit에 대한 log정보를 준다.
commit에 대한hash를 받을 수 있다. 이 hash를 가지고 commit을 취소하거나 되돌아가거나 확인할 수 있다.
그런데 git log메세지가 매우 길다. 이때 git log --online을 쓸 수 있다. git log --online는 commit message를 축약해 준다.