-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update strategy of git aliases #3
Comments
Hi @sQVe! We sure need to incorporate these into the aliases. Good point! For git switch, The documentation for both commands in Git version 2.25 still say:
So not sure if we should wait until the commands are established. Ideas? |
I totally missed that they were listed as experimental. In that case I think we should wait until they are more established. I still think this issue rings true in the sense that we need to start thinking about handling all the aliases we have. There're not that much room for "good" additions, especially if we do not want to rearrange or modify the existing ones. I currently do not have any good suggestions which is most likely because I've been using these aliases for years and they are more ingrained in me than the normal commands. |
More than 2 years have passed and the documentation still says it's experimental (in git 2.37.0). Might be enough time already! :- ) What if we add new two-letter aliases for git switch and git restore? I was thinking of Then we go on adding the three-letter variations, like Thoughts? EDIT: I like how vim-unimpaired uses
But since we're preferring letters that are part of the actual word, and the spelling is not actually |
@ericbn I think your suggestions are fine and would work well. It will be nice to have these commands! 👌 |
I didn't forget about this. I just didn't get used to the new aliases, so still experimenting with them. I'm feeling |
Use the same mnemonic [vim-unimpaired] uses for switch: > The mnemonic for y is that if you tilt it a bit it looks like a switch. See #3 [vim-unimpaired]: https://github.com/tpope/vim-unimpaired/blob/v2.1/doc/unimpaired.txt#L95
Hey 👋,
I think we need a strategy for how we keep the aliases here up to date with the git internals and best practices. An example it the new
git switch
andgit restore
which separates the two different common use cases ofgit checkout
.See:
The obvious alias for
git switch
would beGs
but that is already taken bygit stash
.The text was updated successfully, but these errors were encountered: