sourcetree是git版本管理的工具,跟eclipse没有任何关系。你的代码其实还是在本地硬盘上,只是由sourcetree或者git管理,eclipse导入项目就是file菜单里选择import。