Please explain "Git stash / Commit" in ERPNext

Hello there,

I’m wondering that if currently I’ve customized some codes & functions of ERPNext for example .py or css and image files, which command do I have to use when a newer version of ERPNext released? I’m not sue if it’s right if I use Stash, but I still don’t know how I can recover all of my customization to the newer version.

Please explain me the correct procedures or best practice for updating a newer version and also keeping any customization.

Best Regards,

Please refer to the following link on how to best customize ERPNext.

It is best to maintain all your customizations in a Custom App and use hooks.py in your custom app to extend functionality wherever needed.

If you have modified core files, git stash along with pop command to recover can help. Please refer to the following link to refer more details.