Git trick: Go back up to root directory

This commit is contained in:
Bez Hermoso 2017-10-18 13:34:04 -07:00
parent 10a9f3cda6
commit 58d26581fa
No known key found for this signature in database
GPG Key ID: 55BDEC097B885413
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ Misc
# show single commit info # show single commit info
git log -1 f5a960b5 git log -1 f5a960b5
# Go back up to root directory
cd "$(git rev-parse --show-top-level)"
## Short log ## Short log
$ git shortlog $ git shortlog