2 ms·
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 direc
by tytso 13y ago
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 13y agoYup. Perhaps `git rev-parse --show-toplevel` is better for this alias.