So you have done all sorts of hacks on your Motorola Moto G 2014 2nd generation phone and for some reason you want to revert back to factory settings. For example you have unlocked bootloader of Moto G 2014 and for warranty reasons you must revert back to original firmware.
How to flash and restore the Moto G 2014 2nd gen?
First you download the ROM from here. In the link you will find original ROMs for Germany, USA, English, Canada and Brazil.
XT1063 – Global GSM Single-SIM
XT1064 – US / Canada AWS Single-SIM
XT1068 – Global GSM Dual-SIM
XT1069 – Dual-SIM with Digital TV
1. Download the ROM and extract it to a folder
2. Download mfastboot-v2 and Extract it into the same folder [mfastboot Download: http://goo.gl/lTYq4F]
3. Reboot the phone into Boot loader
4. Run Following commands from the Command Prompt after cd-ing to the folder, one by one.