|
|
|
|
|
by philfreo
4675 days ago
|
|
Two other simple tips without requiring a script: "cd -" will jump back to the last directory you were at, regardless of where it is. Add this to your .bashrc / .zshrc / whatever: alias cdg='cd $(git rev-parse --show-cdup)' And then type "cdg" to keep going up directories until you reach whichever folder contains your git repo. Useful when going from "/Users/philfreo/Projects/myproject/myproject/src/assets/js/views/" back up to "/Users/philfreo/Projects/myproject/" |
|