12 Pushing it to GitHub
We’ve got all this locally, and that’s great, but let’s share it with the world!
If all went well with installation, then there are two steps to making this available publicly.
- Set up git
- Push to github
12.0.1 use_git()
We can establish a git repository with:
use_git()
Which does:
- initialise a git repository
- asks you to commit files
- other setup
After this is done, we want to put it somewhere online. For our use case, we want to use GitHub for this.
12.0.2 use_github()
The usethis
package really does make our lives enormously easier here. They’ve got a little handy function called use_github()
which does the following key things:
- ensures the project uses git
- creates the repo on github
- pushes it to github
This saves us a bit of time, and honestly, feels like a bit of magic.
Features of GitHub
There’s a lot of things about github! Let’s take some time to discuss the following:
- issues
- releases
- milestones
- projects
What questions do you have about github from here?