Copy code from frappe cloud to git repo

I want to download the code from frappe cloud local and to github also ,how can i ? need urgently