How to transfer the online folders into local and run them in a Localhost

Hi all,
I have a installed erpnext in online server and created new modules and doctypes. I need that online to my local host. I have downloaded that folders from online and moved to my localhost by replacing the previous frappe bench and bench repo folders.
How to migrate with it. When giving migration it shows no such command. any idea on this.

Hi @Dhamu,
You have to use the Git-hub for Separation of Code.
1.Add repo in github
2.go to the app folder
3.select the module which created
2.Push that (server) code to github repo
5.The push Code pull to the localhost
Use This Link for Hello World - GitHub Docs
and http://readwrite.com/2013/09/30/understanding-github-a-journey-for-beginners-part-1/

Hi Thanks for your reply,
If I Have edited the ERPNEXT default files means we can do the same thing.