I am trying to understand this git command. I have got a software repository which has got submodules and that submodule points to another submodule. In order to check out, this command is used -
git submodule foreach --recursive 'git checkout master || :'
This question is about understanding this command. What does "|| :" means in this command? I am asking this question so that I can be more flexible in changing these commands according to the need.
In this command - foreach, means for each submodule found go and do a checkout of master but what "|| and :" means here.