...
This will create an empty XBlock. Note that the installation steps are not strictly required. They are for testing using the XBlock SDK server, which is neither intuitive nor a fully-implemented OpenEdX environment. You can skip that step.
Setting up a git repo
OpenEdX recommends using github and a public repo, since it makes it easier to build the docker images eventually
Navigate to the XBlock directory you just made and add everything, including all subfolders, to a git repo, then push it
Linking the git Repo to an OpenEdX Server and Building It
There are two ways to do this: using local or dev versions of the repo. If you use local, you must rebuild the entire docker image every time you make a change. This is very undesirable for development. If you use dev, you can link it to the repo so that every time something changes the changes are automatically reflected without rebuilding. I have not successfully gotten the dev part to work.
...