WordPress Shortcode

Link

You're doing it wrong! Git it right!

Source code management and version control are absolutely essential to a successful software and web development project, especially when working with a team of developers. If your development
…

Source code management and version control are absolutely essential to a successful software and web development project, especially when working with a team of developers. If your development workflow does not include Git, you're doing it wrong! Git it right! Git was first developed in 2005 by Linus Torvalds (yes, THE Linus Torvalds) as a distributed system for managing the development of the Linux kernel. Today, Git is used by companies and organizations large and small. According to the official Git webiste (http://git-scm.com/), Git is used Google, Micorosoft, Facebook, Twitter, and LinkedIn, just to name a few. Even the Joomla CMS and Joomla Platform teams now use Git.

In this presentation, Cory Webb discusses Git and how his company uses Git to manage their web development workflow. He will go over some basic Git commands that every developer should know, as well as cover some popular tools for using Git locally and for hosting Git repositories. He will also open a discussion about how to overcome the limitations of Git, primarily when it comes to managing changes in the database between development and production servers.

5.
Why version control?● Less of this: “Im going to be working on template.css today, so nobody touch it!”● More of this: “Lets all work on template.css today and use our version control system to merge our changes at the end of the day!”

6.
Why version control?● Easier to work as a team● Snapshots of your code at various stages of development● Branching, staging and experimentation● Ability to revert back to previous versions

18.
Git Basics | .gitignore● File that specifies files within your project that Git should ignore● Using the git status command will not list files from the .gitignore file● Files listed will never be staged for commit or committed● http://git-scm.com/docs/gitignore

25.
Git for Joomla | Getting Started● Set up remote hosting for your repository● Push your local repository to the remote hosting● Each developer clones the repository to their local systems● TIP: Ignore the configuration.php file and let that be specific to each developers local repo.

29.
Git for Joomla | Deployment● BeanstalkApp.com enables easy deployment to development, staging, and production servers● Overwrite existing code files with the master repository once it is deemed ready for deployment

30.
Git for Joomla | Database Issues● Git does not track changes to a MySQL database● Probably using different databases for each developer, the development server, staging server and the production server● Development usually involves changing the database (adding articles, menu items, modules, etc. in Joomla)● How do we deal with changes across so many different databases?

31.
Git for Joomla | Database Issues● Option 1: Point all instances of Joomla to the same remote database.● Option 2: Manually track changes.● Option 3: Use a database synchronization tool such as red-gate.com/products/mysql/mysql-comparison-tools/● Solution may vary depending on the details of your project