Git trick: Go back up to root directory
This commit is contained in:
parent
10a9f3cda6
commit
58d26581fa
|
@ -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