• Marcin

    (@marcinkopec)


    Hi,
    is it possible to use Git with WordPress? Do you know any good tutorial described step by step?

    I did it this way:
    I installed the wordress on server i.e. 192.168.0.123.

    Then I copied all files from 192.168.0.123 to my local folder and I created a project in Netbeans from Existing Source(my PC). Any changes in files are uploaded to server 192.168.0.123 straight a way.

    After all I pushed project to WordPress Repository.

    Another developer Cloned the project from repository into his PC and it is connected to WP database located on 192.168.0.123(to have the same post, plugins setting and so on). So we use the same database.

    It works but:
    If developer B makes some changes they are imedietly uploaded into 192.168.0.123. So in practice Developer B overwrite files of developer A and vice wersa. It’s like skipping a GIT.

    I need some help with it.
    Regards,
    Marcin

Viewing 1 replies (of 1 total)
  • Joey

    (@leglesslizard)

    Hi,

    Unsure if this is exactly what you’re looking for but we have a pretty simple setup when working on wordpress projects. We use composer as our dependency manager to pull in wordpress core (as these files do not change) and any other plugins/themes/packages we require for the project. We then create repositories for any custom plugins/themes we require and commit, push any changes we make.

    Running “composer update” checks these repositories and updates them as required or you can cd into the theme/plugin and use git as normal.

    A good introduction is here. You configure composer by telling it where everything is and then pull packages as required into the correct locations.

    We currently use VVV to develop locally as well but don’t currently have automatic pushing of changes to live.

    Hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress on GIT’ is closed to new replies.