(no title)
henshao | 1 year ago
git config --global alias.<cmd> <cmd>
I'm really trying to understand, and not to be too negative. I get coming up with a solution to a problem, and finding it neat locally. But before posting to HN, one might realize that these solutions that git provides existing tools for is better than maintaining this.I'm also confused by all the comments just blindly commenting in the affirmative or providing suggestions. Are we all bots?
mindcrime|1 year ago
One might. But not everybody knows about those existing tools. Taking myself as an example: I've been using Git since nearly the time it was released and I had no idea that git had aliasing built in. Sometimes things just never come up and people don't find out about them. shrug
ahmetsait|1 year ago
henshao|1 year ago
I think a way to do this is to not let git track that in the first place, with some variation of:
via: https://stackoverflow.com/questions/1580596/how-do-i-make-gi...or
https://stackoverflow.com/questions/2517339/how-to-restore-t...
n4r9|1 year ago
n4r9|1 year ago
EDIT: I saw your other comment (incorrectly) claiming that git remote prune origin will do the job. I don't know of any git trickery that can do the job. And believe me I'd love it if there was something.
henshao|1 year ago
https://stackoverflow.com/questions/7726949/remove-tracking-...
kaffekaka|1 year ago
nextaccountic|1 year ago
Compare this with another tool that lets people extend its own command, cargo. You can do cargo install <something> and then run cargo <something>.
keybored|1 year ago
No, I have never used NPM directly. Why do you ask?
bloopernova|1 year ago
henshao|1 year ago
Maybe we are 10x engineers w.r.t. git aliases. Congratulations
cowsandmilk|1 year ago
Why do you disagree with this early decision from git?
parentheses|1 year ago
I looked at 1/3 of the scripts and not one _adds_ functionality, they only add interfaces for existing functionality.
I hate to say this but I feel like this post got upvoted simply for being hit-adjacent.
I wonder if voting on the front page is a bad setup.