Skip to content

Instantly share code, notes, and snippets.

@rayrutjes
Last active September 27, 2016 08:33
Show Gist options
  • Save rayrutjes/448635f1e74ad01996ea80e58610773f to your computer and use it in GitHub Desktop.
Save rayrutjes/448635f1e74ad01996ea80e58610773f to your computer and use it in GitHub Desktop.
Some steps to kickstart the svn / git sync for WordPress plugins

Create an empty git branch

$ git checkout --orphan svn

checkout empty svn repository of the plugin

$ svn co https://plugins.svn.wordpress.org/search-by-algolia-instant-relevant-results/ .

.svnignore

.svnignore
.git
.gitkeep
bin

Ignore results listed in .svnignore in a .gitignore fashion

$ svn propset svn:ignore -R -F .svnignore .

Ensure .git is ignored

$ svn status

List ignored files

$ svn propget -R svn:ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment