Git

히스토리 고치기

커밋하지 않은 작업 내용 버리기

stash 이용

git stash save --keep-index

reset 이용. 더 확실하나 버린 내용은 되살리지 못한다.

git reset --hard HEAD

Git Bash Completion

https://raw.github.com/git/git/master/contrib/completion/git-completion.bash

위의 파일을 다운 받아서 .profile이나 .bash_profile, .bashrc 등에 다음과 같이 추가한다.

. ~/.git-completion.bash

그러고 나면 탭 키를 눌러서 git 명령어나 브랜치 이름 등을 자동완성을 할 수 있다.

Git GUI