Did you know that "git checkout -" works much like "cd -" and switches back and forth between two branches?
@fribbledom doesn't work with git reset, but still very handy!
@fribbledom I didn't even know what's what cd - does
@fribbledom Holy moly what? 😃 Does "cd -" work like "``" in Vim? 🙂
@fribbledom daaang I’ve been using reflog to look it up all this time, thank you!
@fribbledom THANK U!
@fribbledom That was definitely added after Git 2.12.0...
"error: pathspec '-' did not match any file(s) known to git."
@fribbledom TIL about both of those
@fribbledom whaaa thank you for posting this!
I had no idea
@fribbledom Jesus git is a UI shitshow
@clacke @hypolite @fribbledom It's much worse than "worse is better". Hg existed first, and was used by Linux. Instead of replacing its backend with their cool new idea for a DCVS storage model, the Linux kernel group decided to get NIHy and bless the world with one of their amazing interfaces.
It won due to the momentum of the kernel group, then GitHub.
@clacke @hypolite @fribbledom I just don't think WIB quite describes what happened there, as hg was also in the right place at the right time with the right group if people. Just, Torvalds made git, so despite being significantly less user friendly, they went with that.
"Invented Here is Worse therefore Better" I guess 😛
@fribbledom too bad you can't pushb/popb a branch or two though. Although I am just noticing a risk of using 'push'
cheers, didn't know that
@fribbledom I think you can even git merge/rebase -
@fribbledom you've saved me about five minutes a day. Thanks!
@fribbledom I didn't even know about "cd -", I always used pushd and popd. Which doesn't quite do the same job.
@fribbledom Did you know about git worktree?
@fribbledom git branch stack when
Who needs branches if you just clone the repo and actually use cd
@fribbledom you mean to tell me that I've been a UNIX and Linux user for 27 years now, and I never knew about `cd -` ????
I'm confused how often I've seen that kind of response now 😆 I don't think I would have made it through all those years without it.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!