DEV Community

Discussion on: The difference between cd - vs cd ~-

Collapse
 
vinistock profile image
Vinicius Stock

Using cd - will change to the previous directory and git checkout - or git switch - will change to the previous branch.