Created
October 6, 2015 19:55
-
-
Save nathanrice/a2bfb7f05e933750b52f to your computer and use it in GitHub Desktop.
Sync Github repo with WordPress.org repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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