2012-11-14 33 views
0

你好,我正在使用Mercurial來管理我所有的項目。 我的項目有這樣的文件夾結構。Mercurial checkout

www.Project.com 
    01 – Consultancy(excluded) 
    02 – Information Architecture 
    03 – Content 
    04 – Branding 
     Fonts (excluded) 
     Guidelines 
     Logo 
    05 – Design 
     Graphics 
     Stock Photography 
    06 – Code WP-Content 
     Plugins 
     Themes 
    07 – Marketing 
     Email 
     SEO 
     Social Media 

完成靜態HTML後,我喜歡設置Wordpress主題。但我不喜歡在我的web目錄中擁有整個文件夾結構。有沒有辦法只推送和插件插件和主題文件夾到Wordpress沒有其他目錄的?

+0

這questoin已經被問這裏: http://stackoverflow.com/questions/3011498/using-mercurial-hg-how-to-push-just-one-file-or-one-directory-out – Greeso

回答

0

嘗試使用.hgignore功能 - 請參閱here

0

您應該爲06 – Code WP-Content使用單獨的存儲庫。這樣你可以分開推送它。如果一切都在一個存儲庫中,則必須推動所有內容。

+0

但是,子存儲庫呢?我試過這些行 'hg clone https://domain.com/www-project-com www-Project-com cd www-Project-com hg init Code -WP-Content echo Code-WP-Content =代碼的wp-content> .hgsub 汞添加.hgsub' 但是當我嘗試克隆代碼的wp-content地圖我得到的其他地圖 的所有數據'汞克隆https://開頭的域。 com/www-project-com/Code-WP-Content Code-WP-Content 對不起,我試圖讓它更好,但沒有成功 – user1073323

+0

對不起,我不熟悉Mercurial的subrepository「最後手段的特徵「。您可以在Mercurial中嵌套存儲庫而不使用子版本庫功能,但必須單獨管理它們。 –

0

感謝您的回答。

我已經決定我websever創建別名到 www.Project.com/06解決問題 - 代碼的wp-content路徑離開休息tackt