Created
March 8, 2015 19:15
-
-
Save jupitercow/2c20dfc9cd870dde0e0d to your computer and use it in GitHub Desktop.
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
# Checkout the repository from .org (must use “https”!) | |
svn co https://plugins.svn.wordpress.org/sewn-in-xml-sitemap . | |
# Change directory to the trunk | |
cd trunk | |
# Clone the plugin files from Github | |
git clone git@github.com:jupitercow/sewn-in-xml-sitemap.git . | |
# Change back to parent directory | |
cd ../ | |
# Check the SVN status, you will see git files listed, we need them to not be seen by SVN | |
svn status | |
# Add SVN ignores to keep GIT out of your SVN repo on .org, the line break after .git is important | |
svn propset svn:ignore '.git | |
.gitignore | |
README.md' trunk | |
# Add this content to a ".gitignore" file to keep SVN out of your repo on Github | |
*~ | |
.DS_Store | |
.svn | |
.cvs | |
*.bak | |
*.swp | |
Thumbs.db | |
/.DS_Store | |
/.svn | |
# Add everything to the SVN repo | |
svn add * --force | |
# Remove things if something went wrong | |
svn revert [filename] | |
# Create a tag to get started | |
svn copy trunk tags/1.0.4 | |
# Commit the SVN where the username and password are from http://wordpress.org/plugins/ | |
svn --username [username] --password [password] commit -m 'initial commit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment