git add => staging git commit => repository (save)

git status를 통해 해당 파일이 '어디 영역'에 있는지 확인할 수 있다.
git add를 통해 staging area로 옮겼다.
git commit을 통해 저장하고, (기억 지점만들기, 체크섬 생각) 다시 status는 어떤 파일도 modified 되어 있지 않는 것을 볼 수 있다. 
git commit --amend를 통해 지금 커밋한 메시지 내용을 변경할 수 있다.
git log를 통해 commit (기억 지점, 저장 저점) 들을 확인할 수 있다.



git log의 옵션git log -p -2git log --statgit log --pretty=onelinegit log --graph
git log -S function_namegit reset 을 이용하면 된다.git reset HEAD 특정파일을 이용한다. 
git reset HEAD^ or git reset HEAD^^ 와 같은 방법을 이용하자.
git reset --hard HEAD^ 와 같이 --hard 옵션만 추가하여 사용이 가능하다.