Merge pull request #98 from bezhermoso/git-tricks
Git trick: Go back up to root directory
This commit is contained in:
commit
060d117123
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue