Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tytso
on Sept 1, 2013
|
parent
|
context
|
favorite
| on:
Quickly go back to a directory instead of typing c...
Note that "git rev-parse --show-cdup" return the empty string if you are at the top of the git repo. So "cdg" as defined above will drop you in the hope directory if you are already at the top of your git tree.
davvid
on Sept 1, 2013
[–]
Yup. Perhaps `git rev-parse --show-toplevel` is better for this alias.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: