61
Git tip: switch to previous branch
(programming.dev)
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Resources
Rules
Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.
Which follows the similar functionality used by the
cd -
command to switch to the previous directory you were in. Very handy!You can do what 👀
There's more! Well, it's more a bash thing than a cd thing.. in bash the variable
$_
refers to the last argument to the previous command. So you can do the following:It's handy for a whole host of things, like piping/touching then opening a file, chown then chmod, etc.
This is amazing ♥️