Skip to content

Instantly share code, notes, and snippets.

@nathanrice
Created October 6, 2015 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanrice/a2bfb7f05e933750b52f to your computer and use it in GitHub Desktop.
Save nathanrice/a2bfb7f05e933750b52f to your computer and use it in GitHub Desktop.
Sync Github repo with WordPress.org repo
svn co url-of-svn-repo
cd trunk
rm -rvf * *.* .*
git clone git-repo.git
copy files:
package.json
Gruntfile.js
.gitignore
.gitattributes
.svnignore
svn propset svn:ignore -F .svnignore .
change package.json
npm install
grunt checktextdomain
grunt addtextdomain
grunt makepot
git add .
git c 'Grunt, POT.'
git push
svn add --force .
svn ci -m 'Sync with github.'
(if necessary)
modify readme.txt, {plugin}.php, package.json for new version
cd ..
svn cp trunk tags/{version}
svn ci -m "Tagging {version}."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment