git-cheatsheet icon indicating copy to clipboard operation
git-cheatsheet copied to clipboard

This is a compilation of common git commands. It is to keep them all handy at one place.

Results 19 git-cheatsheet issues
Sort by recently updated
recently updated
newest added

http://stackoverflow.com/a/179147/709769

http://travisjeffery.com/b/2012/02/search-a-git-repo-like-a-ninja/

question

``` git blame -L10,+1 fe25b6d^ -- src/options.cpp ``` Source: http://stackoverflow.com/a/5098314/709769

http://stackoverflow.com/a/19095988/709769 Remove **all** files from repo: ``` git rm -r --cached . ``` Re-add all files: ``` git add . ``` then ``` git commit -am "Remove ignored files" ```

enhancement

git diff --stat old-commit-hash..new-commit-hash

http://stackoverflow.com/a/2596835/463065

http://stackoverflow.com/a/10415744/463065

Especially removal can be quite tricky.