Hacktoberfest 2019:
Git, GitHub, and WordPress
By: Chandler Weiner
Link to slides: ChandlerWeiner.com
Whois - Chandler Weiner
This talk will cover the following topics:
What To Cover
How many of you know what Git is?
How many of you use Git on a regular basis?
Let’s Git Down To Business
Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.
https://git-scm.com/downloads/logos
Let’s Git Down To Business
Let’s Git Down To Business
Git is a command-line tool and many people stick to the CLI. However, there are also visual ways to use Git:
Let’s Git Down To Business
Popular places to host your Git repository (repo) include:
Setting Up Git
From: git-scm.com/downloads
Setting Up Git
Atom
atom.io
GitHub Desktop
desktop.github.com
So What is GitHub?
“GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.”
Source: https://guides.github.com/activities/hello-world/
So What is GitHub?
Get to know the lingo:
Git from the command line
Time to break out the Git Cheat Sheet
Basic Git Commands
Source: https://guides.github.com/introduction/git-handbook/
Basic Git Commands
Source: https://guides.github.com/introduction/git-handbook/
Basic Git Commands
Source: https://guides.github.com/introduction/git-handbook/
Git from a GUI
GitHub Desktop from https://desktop.github.com
GitHub For Atom, from https://github.atom.io/
GitHub Workflow
Create A Branch
Source: https://guides.github.com/introduction/flow/
Commit Your Changes
Source: https://guides.github.com/introduction/flow/
Open a Pull Request
Source: https://guides.github.com/introduction/flow/
Talk About Changes
Source: https://guides.github.com/introduction/flow/
Deploy for Testing
Source: https://guides.github.com/introduction/flow/
Merge The Code
Source: https://guides.github.com/introduction/flow/
How Do I Do All Of That?
1. On GitHub.com (or the desktop app), create a new branch (or first fork another existing repo)
Source: https://guides.github.com/activities/hello-world/
How Do I Do All Of That?
2. Make your changes and commit them
Source: https://guides.github.com/activities/hello-world/
How Do I Do All Of That?
3. Open a pull request (PR).
Source: https://guides.github.com/activities/hello-world/
How Do I Do All Of That?
4. Merge the PR
Source: https://guides.github.com/activities/hello-world/
The Best Way To Learn GitHub
GitHub Learning Lab - https://lab.github.com/
https://lab.github.com/githubtraining/introduction-to-github
How Does This Apply To WordPress?
Git for WordPress
Helpful Plugins
Demo Time
GitHub for WordPress
More Helpful Plugins
Things you can do with GitHub and WordPress
Git for WordPress Resources
premium.wpmudev.org/blog/git-for-wordpress-development
premium.wpmudev.org/blog/improve-wordpress-development-workflow-local-server/
pantheon.io/easiest-way-use-git-wordpress
45royale.com/blog/wordpress-github/
hywel.me/static/site/wordpress/2016/07/17/fast-free-static-website-with-wordpress-and-github-pages.html
Static Hosting for WordPress
Great tools to use for a static WP site:
strattic.com/static-tools/
Recall these plugins:
Future
Talk?
https://www.freecodecamp.org/news/off-with-their-heads-building-a-headless-wordpress-to-manage-content-bb04e6b2a792/
Questions?
On Another Note….
What is Hacktoberfest?
Hacktoberfest is a month-long celebration of open-source code all October, sponsored by DigitalOcean and other companies (for 2019 it’s Dev.to).
“Whether you’re a developer, student learning to code, event host, or company of any size, you can help drive growth of open source and make positive contributions to an ever-growing community. All backgrounds and skill levels are encouraged to complete the challenge.”
How do I participate?
Submit at least 4 PRs to public repos on GitHub making meaningful contributions to the repos. Writing docs, fixing bugs, adding features, it all counts!
Happy Hacktoberfest!
That’s cool! What do I get?
Sweet, sweet swag, of course! That’s what you get! DigitalOcean/Dev.to are giving out 50,000 t-shirts this year to people who submit 4 PRs during Hacktoberfest!
How do I sign up?
Make sure you have an account on GitHub and then register on the Hacktoberfest website: https://hacktoberfest.digitalocean.com/
Find more details here: https://hacktoberfest.digitalocean.com/details
Happy Hacktoberfest!
Are there any other companies offering swag besides just DigitalOcean and Dev.to?
Glad you asked! :-)
[Time for a shameless self plug]
I have an open-source Jekyll site at HacktoberfestSwagList.com that tracks just that. Anyone can contribute to make the site better and add companies to the list!
It’s a Jekyll site so don’t hate me too much...
Happy Hacktoberfest!
WordPress Related Open-Source Projects
Twenty Twenty
https://github.com/WordPress/twentytwenty
Gutenberg
https://github.com/WordPress/gutenberg
WP-CLI
https://github.com/wp-cli/wp-cli
CaptainCore
https://github.com/CaptainCore/captaincore
WP Toolbelt
https://github.com/BinaryMoon/wp-toolbelt
WPScan
https://github.com/wpscanteam/wpscan
Yoast SEO
Let’s Start Hacking Together!
Post your swag to Twitter and share in the love!
#Hacktoberfest
@Hacktoberfest
@DigitalOcean
@ThePracticalDev