사다리타기에서 걸렸다.. 정리해 본다. --2017-04-24
Git을 사용하는 방법을 알고 싶은데 한 챕터밖에 읽을 시간이 없다면 이번 챕터를 읽어야 한다.
뭐 완전 기본 내용이라.. 걸린게 더 나은 건지도..
git init
지원하는 프로토콜: https://, git://, user@server:path/to/repo.git(ssh)
git clone https://github.com/libgit2/libgit2 git clone https://github.com/libgit2/libgit2 mylibgit

git status # short git status -s git status --short
.gitignore
/로 시작되면 하위 폴더에 적용되지 않음/를 끝에 붙여서 표현!로 시작하는 패던의 파일은 무시하지 않음
git diff
git diff --stagedgit commit -a -m "commit message"
git rm README.mdgit log git log -p # includes diff git log -2 # latest n commit git log -p -2 git log --stat git log --pretty=oneline git log --pretty=short git log --pretty=full git log --pretty=fuller git log --pretty=format:"%h - %an, %ar : %s" git log --pretty=oneline --graph git log --graph
-<n>--since, --after--until, --before--author--comitter--grep - 커밋메시지의 텍스트 검색-S - 변경 내용의 테스트 검색
git commit --amendgit reset HEAD CONTRIBUTING.md
git checkout -- CONTRIBUTING.md
git remote
git remote -vgit remote add pb https://github.com/paulboone/ticgit
git fetch pb git fetch origin git fetch git pull origin git pull
git push origin master git push
git remote show origin
git remote rename pb paul
git remote rm paulgit tag git tag -l 'v1.8.5*'
git tag -a v1.2 9fceb02
git push는 태그를 자동으로 전송하지 않는다. 별도로 Push해야 함
git push origin tagname
git push origin --tags태그는 Checkout할 수 없으며, 태그가 가리키는 특정 커밋 기반의 브랜치를 만든다.
git checkout -b version2 v2.0.0
맘대로 alias를 만들어 쓸 수 있다.
git config --global alias.co checkout git config --global alias.br branch git config --global alias.ci commit git config --global alias.st status git config --global alias.unstage 'reset HEAD --' git config --global alias.last 'log -1 HEAD' git config --global alias.visual '!gitk'
Similar pages by cosine similarity. Words after page name are term frequency.