Is it possible to make git clone do git clone --recursive by default?
            Asked
            
        
        
            Active
            
        
            Viewed 2,734 times
        
    26
            
            
        - 
                    @TylerH: Almost, but the answer here is worth saving, and it wouldn't quite fit there. – einpoklum Dec 07 '17 at 15:29
- 
                    @einpoklum fair point, but questions closed as duplicates are not deleted by the Roomba, as they act as useful signposts. – TylerH Dec 07 '17 at 15:30
1 Answers
19
            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
- 
                    1Interesting. 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. – Sahand May 26 '14 at 20:16
- 
                    1@Sahand I believe that's not possible, actually: http://stackoverflow.com/questions/5916565/#comment6812824_5916565 – Seldom 'Where's Monica' Needy Feb 14 '17 at 23:26
 
     
    