The e-Visa allows multiple entries into India during your stay, so you can leave India to visit another country (e.g. Nepal or Bangladesh) and then re-enter without any worries. You can leave India by any means, including on foot.