Hacker News new | past | comments | ask | show | jobs | submit login

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.



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: