I suppose this is a problem with any alias.
Git git git git git
121–130 of 244 posts
Re: Git git git git git
#122(is this really a thing?)
Re: Git git git git git
#123The danger of this is if you accidentally write 'git git something' into a shell script and it works on your machine, then you commit the script to a repo and it doesn't work for anyone else. I suppose this is a problem with any alias.
Re: Git git git git git
#124Earlier quoted context omitted.
I often type "git clone ", then switch to a browser to copy/paste the URL, which is usually fine, but there are still many times where I've happened to include "git clone" in the copied string. (So I end up with "git clone git clone $URL").
Re: Git git git git git
#125Earlier quoted context omitted.
I do. And I also write "vim vim thefile.txt" and stuff like that. Finally I've written a small shell function that corrects "gi tpull" to "git pull", because that happens at least once a day.
Try The Fuck: https://github.com/nvbn/thefuck/blob/master/README.md
Re: Git git git git git
#126Since then, I've found that these aliases have been the best workflow improvement I've ever made.
Re: Git git git git git
#127Re: Git git git git git
#128>I quite often type git then go away and come back, then type a full git status after it. Does anyone else actually do this besides OP. I've never heard of this problem until now.
I often type "git clone ", then switch to a browser to copy/paste the URL, which is usually fine, but there are still many times where I've happened to include "git clone" in the copied string. (So I end up with "git clone git clone $URL").
Re: Git git git git git
#129Earlier quoted context omitted.
Not this, but I do fairly often think assume I'm in vim when I'm not. `alias :q="echo NOT IN VIM!!!"`
My favorite one of these is typing ctrl-w (cut in emacs) in a browser tab as I am editing a bunch of text in a text box.
My friends have gotten used to see me part the channel and rejoin shortly after, cursing my fingers.
Re: Git git git git git
#130>I quite often type git then go away and come back, then type a full git status after it. Does anyone else actually do this besides OP. I've never heard of this problem until now.
I do. And I also write "vim vim thefile.txt" and stuff like that. Finally I've written a small shell function that corrects "gi tpull" to "git pull", because that happens at least once a day.
(me earlier this month: https://twitter.com/sailoremo/status/908390247548911617)