We’re done with both requirements documents. It’s time to push the branch to GitHub. In this episode, you’ll: Push the branch to GitHub Create a Pull Request (PR) Change the master repo to your GitHub account instead of the original on Know the Code Walk through the PR GUI Merge it into the master branch Delete the requirements branch Pull the updated master branch down to your machine to sync you up with GitHub
Everything is installed on your local machine. Let’s walk through the plugin’s code together. You’ll also commit the updated composer.lockfile and fix the root namespace too. Then you’ll push those changes to your repo on GitHub.
Let’s run the starter test suite to ensure everything is setup and ready to go. Then we’ll walk through the test suite basics.
Let’s SSH into your local server and install the Composer packages. If you are running in a PHP 5 environment, you’ll get a composer error. Don’t worry. We’ll review why and I’ll show you have to resolve it. Then we’ll walk through the composer.jsonfile together.
If you are using Local by Flywheel, you need to install and setup PHPUnit before you can get to work. SSH into your project’s server Download this script Then you’ll follow the instructions to finish the installation and setup.
You need a copy of the starter plugin. In this episode, you’ll Fork the plugin to your personal GitHub account Clone your copy of the plugin into your local project, i.e. onto your computer Test out that it’s wired to GitHub with git statusand git remote -v At this point, make sure you have the git aliases setup on your machine. If you haven’t already done Git Productive lab, you can grab the aliases for your .gitconfig file in this gist.
Adding gifs to your pull requests (PRs) can get them approved faster. Gifs can also help your tickets or issues get accepted. It works as you are showing the code or issue in action. Ryan Kienstra will show you how.
Git gives us hooks in order to get our work done and further automate our process. In this hands-on coding lab, you will dive deep into the hooks that are available in git. When is it coming? This lab has been put on hold and will be added to a future workflow roadmap. Prerequisities What you will to need in order to maximize the benefits of this lab. Before you get started in this lab, we recommend the following: Have git globally installed and configured on your machine. Have a GitHub account. Have SSH setup on your machine and GitHub. […]
In Git Contributing, you learned how to delete a local branch. The command of -D is fairly straightforward. But what if you want to delete both the local and remote branches. Let’s build an alias.
In order to build complex aliases, we want to open up the global .gitconfig file in the text editor that is wired to git. Then we’ll add some commenting to provide more context and details for our aliases. If you have not yet wired up your text editor to git, I highly….highly….highly recommend that you do so. Why? The main reason is for writing more detailed commit messages as well as doing rebasing too. Check out this lab for a Mac or Windows to wire yours up.