show dbs
As many of you know I have been on a quest to get Jetpack core development moved from the WordPress.org Subversion (svn) repository to Github (git). As part of this process I setup an experimental Jetpack repository to see how synchronization works between git and svn. Lets just clear the air right now and say not well, not well at all. This is due to how git and svn each store their respective histories. But! I think I finally have it figure out.
I wrote an article a couple months ago entitled Creating a synchronized Github fork of a WordPress.org Subversion plugin repository. This article is great (and still a recommended read) if you are only doing synchronization b
/* | |
* Reverse Integer using Javascript ES6 | |
* Built in JS methods: toString(), split(), reduce(), Math.sign() | |
*/ | |
const reverseInt = (n, rev='', final) => { | |
final = n.toString().split('').reduce((acc, inv) => rev = inv + acc, ''); | |
return parseInt(final) * Math.sign(n); | |
} |
## Find and replace ** yourdomain ** and add your desired domain name | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
# Copy files | |
svn co https://plugins.svn.wordpress.org/plugin-name/trunk | |
# Copy files and create a new folder | |
svn co https://plugins.svn.wordpress.org/plugin-name/trunk < dirname > |
# Create directory | |
mkdir < dirname > | |
# Remove directory | |
rm < dirname > | |
# Remove directory if it's not empty | |
sudo rm -r < dirname > |
ln -s directoryA/directoryB/branches/feature/dev directoryB |