Y
Hacker News
new
|
ask
|
show
|
jobs
by
hinkley
1885 days ago
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 -
1 comments
secondstring
1885 days ago
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.
link
aj12ay
1884 days ago
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.
link