-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Bug]: Duplicate declaration of grm
in git.aliases.bash
#2160
Comments
Good catch ! Hope it didn't hurt too much when you discovered it ... My take is to remove both the
|
Actually, my take is, following your suggestion in #2159 (review), that Following that logic we may keep In my brain, for example, |
I had to sit with it for a bit, but I've come around to seeing value in having the
There are a couple that have the
I think its okay to leave these as-is (ie don't change to (side note re: |
Then again, |
I don't see how they are related at all, as I was just seconding what you already proposed (git rebase aliases using prefix
In general, I have a lot of issues with the git aliases, but my opinion is only a small drop in the bucket and, without a better place for discord on such things, I don't worry about trying to fix the whole file :) |
I would tackle this as you suggested above, once we get #2159 merged. |
Expected behavior
After having activated the Git aliases,
grm
should do the same asgit rm
.Current behavior
grm
is an alias forgit rebase
. This is because the alias is redeclared after the firstgrm
.Possible solution
grm
,grmi
,grma
are meant to be. Why are they (thought to be) intuitive to use?git rebase
, e.g. based ongrb
) or forgit rm
.Context
I attempted to remove a file with Git.
Steps to reproduce
grm
on a file in a repository.The file will not be removed, but an error message of
git rebase
will appear.Bash-it version
dev (Current git SHA: d770030 on 2022-08-17T07:17:42+03:00)
List of enabled plugins, themes and aliases
general, git
Bash version
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Operating system and version
Ubuntu 22.04.1 LTS jammy (on WSL 2)
bash-it doctor output
Your ~/.bashrc
Notes
No response
The text was updated successfully, but these errors were encountered: