Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Version control, workflows and deployments with...

Version control, workflows and deployments with WordPress

Jan Henckens

February 16, 2015
Tweet

More Decks by Jan Henckens

Other Decks in Programming

Transcript

  1. Me • PHP / Expression Engine / sysadmin @ statik.be

    • WordPress developer/consultant @ on-edge.be • WordPress core contributor
  2. .git Git is a distributed revision control system with an

    emphasis on speed, data integrity, and support for distributed, non-linear workflows.
  3. Basics • git init • git add • git commit

    Remotes • git pull/push • git checkout
  4. Apps • Sourcetree (Windows, Mac OS, Linux) • Tower (Mac

    OS) • Github (Windows, Mac OS, Linux) Resources • http://git-scm.com/book/en/v2 • http://www.git-tower.com/learn/
  5. Other features • git blame (who changed what and why)

    • git bisect (find exactly where something broke) • .gitignore (uploads, config, backup) • git submobules (inculdes other git repo's in yours)
  6. Git flow • Branching workflow • Built into SourceTree &

    Tower Branch model • master/develop • features (starts from develop) • releases (merges develop into master) • hotfix (starts from master)
  7. git push > deploy • Know when your changes are

    live • Roll back when something breaks • Everyone can deploy • NO MORE FTP
  8. Services • beanstalkapp.com (hosting + deploy) • dploy.io (hosting +

    deploy) • deployhq.com (deploy) • codeship.io (ci + deploy)