使用git开发wordpress插件

搭建过程参考:https://jeremypry.com/wordpress-plugin-development-with-github/#connect-your-local-repository-to-github

获取版本号

svn log http://plugins.svn.wordpress.org/simple-post-series

使用git来checkout svn对应版本,特别注意加上-s后对应的版本设置一定要选trunk的。

git svn clone --no-minimize-url -r1890455 http://plugins.svn.wordpress.org/simple-post-series/

进入目录后,获取更多信息

git svn fetch --all

设置git目录

git remote add origin https://github.com/chaozh/post-series.git
git fetch origin

同步github提交svn方法

git rebase --onto remotes/trunk --root remotes/origin/master
git checkout master
git pull origin master
git checkout svnsync
git svn rebase
git merge --no-ff master
git commit
git svn dcommit
打赏作者
提交看法

抢沙发

还没有评论,你可以来抢沙发