WordPress插件开发笔记(九):使用SVN
2018-11-29 本文已影响9人
破旧的大卡车
假设你想继续开发你发布的插件, 此时就需要用到svn来管理版本了。 不好意思, wordpress官方不支持git。
- 新建一个目录, 并checkout远程代码:
mkdir -p ~/development/latex2html
cd ~/development/latex2html
svn co https://plugins.svn.wordpress.org/latex2html .
- Tag目前版本(in
trunk
):
svn cp trunk tags/2.3.4
- 进入
trunk
目录进行修改:
cd trunk
#do the edit of your plugins
- 添加
trunk
并提交修改
cd ..
svn add trunk/* --force
svn ci -m 'Add new function' --username your-wordpress-username --password your-wordpress-password