Horje
git show last commit Code Example
git show last commit
git show --summary
how to see all commits in git
$ git log --pretty=format:"%h - %an, %ar : %s"
ca82a6d - Scott Chacon, 6 years ago : Change version number
085bb3b - Scott Chacon, 6 years ago : Remove unnecessary test
a11bef0 - Scott Chacon, 6 years ago : Initial commit
Source: git-scm.com
how do i get the last commit
$ git reset --soft HEAD~1
command to check recent commit
git log --name-status HEAD^..HEAD
git log in command line pretty view
$ git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

* 3396763 - (HEAD, origin/master, master) Add twitter link (4 days ago) <Mattias Geniar>
* c73bbc9 - add facebook link (6 days ago) <Mattias Geniar>
* cb555df - More random values (6 days ago) <Mattias Geniar>
*   60e7bbf - Merge pull request #1 from TSchuermans/patch-1 (7 days ago) <Mattias Geniar>
|\
| * 8044a8f - Typo fix (7 days ago) <Tom Schuermans>
|/
Source: ma.ttias.be




Shell

Related
install virtualenv Code Example install virtualenv Code Example
git search history for file Code Example git search history for file Code Example
node-pre-gyp install --fallback-to-build --library=static_library Code Example node-pre-gyp install --fallback-to-build --library=static_library Code Example
format pendrive linux Code Example format pendrive linux Code Example
gitigore rm cache Code Example gitigore rm cache Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12