LoginSignup
4
5

More than 5 years have passed since last update.

WordPressをgitのSubmoduleで管理する

Last updated at Posted at 2015-12-01

wpディレクトリに、Wordpressをインストールしたい場合

git submodule add git://github.com/WordPress/WordPress.git wp

参考: https://davidwinter.me/install-and-manage-wordpress-with-git/

git clone したディレクトリでSubmoduleをcloneしたい場合

git submodule update --init --recursive

参考: http://stackoverflow.com/questions/3796927/how-to-git-clone-including-submodules

Wordpressの更新

cd wp
git pull --tags
git checkout 4.3.1 (←バージョンのtagを指定)
4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5