To move your ERPNext development setup to a production environment and keep it on GitHub, first, create a Git repository in your current setup and push it to GitHub. Then, on your production server, clone this GitHub repository. After cloning, set up ERPNext as usual. This way, your development work is saved on GitHub, and you can easily move it to production.
Reference: