Avinash Raj:

cd - switches between the old and new present working directories.

More importantly, this works with git checkout -. If you have a feature branch that you can never remember the name of, and you’re switching between it and master, you’d otherwise have to keep doing git branch to list your branches and see the one you want. If you’re working in git a lot, this will really help your flow.