Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hinkley
on April 22, 2021
|
parent
|
context
|
favorite
| on:
How to navigate directories faster with Bash (2015...
I don't think this is documented anywhere that I've found, but
git checkout -
checks out the previous branch you were on, similar to cd -
secondstring
on April 22, 2021
[–]
Big fan of git-aliasing this to `git back`. I actually use it a ton and that small amount of extra chars plus the "-" makes a pretty decent difference for me.
aj12ay
on April 23, 2021
|
parent
[–]
Speaking of extra characters, I'm pretty far in with the `git` commands. `git checkout` -> `g c`, `git status` -> `g s`.
I usually do `g c -` but I guess `g back` wouldn't be bad.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: