Open a new terminal, on your machine and navigate to your project directory:
cd /Path/to/your/project
Our deployment pipeline leverages Feature Branch Workflow, so before we begin developing our changes, we need to be on a unique git branch, which we can get to with the following command:
git checkout -b <branch-name>
Note: The
-b
option creates the<branch-name>
if it doesn't already exist
Now, make the necessary changes to your project in your favorite text editor
Note: Once you've saved your changes, pick back up here and complete the following steps.
git add <altered-files>
git commit -m "<message-about-changes>"
git push origin <feature-branch>
Navigate to your projects repository on Github
We need to create several pull requests to get our feature from it's feature branch to the production server.
base: development
tocompare: feature
base: prerelease
tocompare: development
base: master
tocompare: prerelease
For each of the three above requests, follow these steps:
-
Click the
Pull Requests
tab in the top menu bar -
Click the green
New pull request
button -
Set the
base
branch -
Set the
compare
branch -
Click the green
Create pull request
button -
Add a description of your feature
-
Click the next green
Create pull request
button
Note: if both branches are able to be merged, you'll have the option to complete the final step
-
Click the
Merge Pull Request
button -
Click the
Confirm Merge
button