WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] problem syncing with Github (4 posts)

  1. jplew
    Member
    Posted 1 year ago #

    Hello:
    I'm trying to clone a WordPress installation on my local machine using Github:
    https://github.com/WordPress/WordPress

    I am trying to use this repository, https://github.com/WordPress/WordPress.git, but the problem is that this is currently giving me WordPress 3.5 beta 2. I don't want the beta, I want the latest stable build, 3.4.2.

    When I go "git branch", it tells me that I only have one branch named 'master'. I tried to go 'git pull origin/3.4-branch' but it disconnects me.

    Can explain please explain how I would go about this? Thanks a lot.

  2. jplew
    Member
    Posted 1 year ago #

    ok, one solution I found was to go git checkout origin/3.4-branch, but that still gives me 3.4.3-alpha. How do I get the most recent stable build?

  3. Nathan Gross
    Member
    Posted 1 year ago #

    I'm pretty new to Git so this is an fairly unqualified answer but I believe it's just:

    git checkout 3.4.2

    Tags are used for versioning rather than branches.

    git tag

    to see a list of all the tags

    This helped: http://git-scm.com/book/en/Git-Basics-Tagging

    as did this: http://davidwinter.me/articles/2012/04/09/install-and-manage-wordpress-with-git/

  4. jplew
    Member
    Posted 1 year ago #

    thanks bldg13, that was the answer I was looking for. I had reverted to using:

    git reset –hard 3.4.2

    They achieve the same thing, but I think your way is better. And thanks for the heads up on those references. Cheers.

Topic Closed

This topic has been closed to new replies.

About this Topic