Is it possible to make git clone do git clone --recursive by default?
-
1@TylerH: Almost, but the answer here is worth saving, and it wouldn't quite fit there.einpoklum– einpoklum2017-12-07 15:29:52 +00:00Commented Dec 7, 2017 at 15:29
-
@einpoklum fair point, but questions closed as duplicates are not deleted by the Roomba, as they act as useful signposts.TylerH– TylerH2017-12-07 15:30:33 +00:00Commented Dec 7, 2017 at 15:30
Add a comment
|
1 Answer
No, it is not possible, see:
Is it possible to override git command by git alias?
However, you can define a similar instead:
git config --global alias.cloner "clone --recursive"
then
git cloner http://localhost/yyy.git
2 Comments
Sahand
Interesting. I had
alias glone="git clone --recursive" in my bashrc file but I think I prefer this. I didn't know you could alias git commands. Thank you.Seldom 'Where's Monica' Needy
@Sahand I believe that's not possible, actually: stackoverflow.com/questions/5916565/#comment6812824_5916565