[SalesForce] synching cloned github repo to org with mavensmate

I'm trying to clone a github repo and then connect it to my dev org. I've tried to do this several different ways with Mavensmate in Sublime Text and none seem to work for me.

I tried just creating a new project, selecting no metadata, and received the following error: module object has no attribute get_password_by_project_name.

I also tried following this method: http://mavensmate.com/Plugins/Sublime_Text/Existing_Projects

and received this error: project with this name already exists in your workspace

Has anyone had success with this?

Best Answer

I do this all the time. Here's what I do:

  1. Make sure the repo doesn't include certain files and folder. Here's my .gitignore:

config/ *.sublime-project *.log deploy/ debug/

  1. Clone the repository using your favorite Git client (I use Source Tree).
  2. Open the containing folder in Sublime
  3. Right click on the folder to create a MavensMate project and connect it to your sandbox. (http://mavensmate.com/Plugins/Sublime_Text/Existing_Projects)
  4. Optionally, use Ant to deploy the entire metadata to the sandbox or just save piecemeal as you need.
  5. Make changes and commit!
Related Topic