How to add files to subversion (2 posts)

  1. Akshay2598
    Posted 4 years ago #

    Hey i just made a plugin share-box, i don't know how to add the files to the directory though :(.
    Where do i do the code?
    "# Create a local directory on your machine to house
    # a copy of the repository.

    $ mkdir my-local-dir

    # Check out the repository

    $ svn co http://plugins.svn.wordpress.org/your-plugin-name my-local-dir
    > A my-local-dir/trunk
    > A my-local-dir/branches
    > A my-local-dir/tags
    > Checked out revision 11325.

    # As you can see, subversion has added ( "A" for "add" )
    # all of the directories from the central repository to
    # your local copy.

    # Copy the plugin files to the local copy.
    # Put everything in the trunk/ directory for now.

    $ cd my-local-dir/
    my-local-dir/$ cp ~/my-plugin.php trunk/my-plugin.php
    my-local-dir/$ cp ~/readme.txt trunk/readme.txt

    # Let subversion know you want to add those new files
    # back into the central repository.

    my-local-dir/$ svn add trunk/*
    > A trunk/my-plugin.php
    > A trunk/readme.txt

    # Now check in the changes back to the central repository.
    # Give a message to the check in.

    my-local-dir/$ svn ci -m 'Adding first version of my plugin'
    > Adding trunk/my-plugin.php
    > Adding trunk/readme.txt
    > Transmitting file data .
    > Committed revision 11326.

    # All done!"

    It just say's "Add your files to the trunk/ directory of your local copy of the repository." BUT HOW???
    Please help me

  2. NateJacobs
    Posted 4 years ago #

    If you are trying to host your plugin on WordPress.org take a look at this link.


    I would highly suggest you do some research on the web for how subversion works and how to use it. There are plenty of good tutorials out there.

Topic Closed

This topic has been closed to new replies.

About this Topic