English 中文(简体)
我怎么能够用吉特语部署一个言语广播站,而不承诺使用WP芯?
原标题:How can I deploy a WordPress site with Git without committing WP core?

我一直在研究如何利用电灯进行言语广播。 几乎所有例子都有言语作为边远的存放处,定期并入总/专业部门。

我不想把言语核心投入我的存放处。 我基本上想忽略除档案外的一切(主要是我的习惯主题)。 我是否能够这样做,但仍然保持一个当地、中转和生产服务器,运行同样的语言版本?

问题回答

合并遥远的存放处是必要的,除非您希望从您的复印件上调。

附录

cd wp
git init .
touch .gitignore # Add required stuff to .gitignore.
git add .
git commit -m "Initial commit."

现在,当你想稍微反映这些变化时,就把你的生产或固定服务器放在遥远的地方。

git push staging master

Possible Solution via git Submodules

你们的言辞是 g。 第一波:

git clone git://github.com/Soliah/Wordpress.git
cd Wordpress
git checkout origin/3.2-branch

现在说,你的主题是“憎恶”:

cd Wordpress
git submodule add https://github.com/Soliah/awesomeness.git ./wp-content/themes/awesomeness
git submodule init
git submodule update

现在,你想要更新主题,首先更新主题:

cd awesomeness
# update some stuff
git add .
git commit -m "Update theme."
git push origin master

字句中的背后只是更新了分层,并推向了主线。

cd Wordpress
git submodule update
git commit -m "Update theme submodules."
git push origin master

在您的其他服务器上,如果已经出现,你可以读到<条码>git Clone git://github.com/Soliah/Wordpress.git && git submodule Update --init 或git tr





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签