Question: when do alkyl shifts occur?
Answer: If a secondary carbocation is vicinal to a tertiary carbon bearing a hydrogen, a 1,2- hydride shift should occur. If a secondary carbocation is vicinal to a quaternary carbon, a 1,2-alkyl shift should occur. The general rule in alkyl shifts is: the smaller alkyl substituent tends to be the substituent that shifts.