Forking Erlang/OTP

9 Jan 2023 17:49 erlang

Some notes about hacking on and contributing to Erlang, because I don’t do it frequently enough to have all of this in muscle memory.

Create a fork

  1. Use the Github UI to create a fork of erlang/otp.
  2. Use git clone to clone the repository to your machine.
  3. Make sure that there’s an upstream remote in your clone:
git remote add upstream git@github.com:erlang/otp.git && \
  git remote set-url --push upstream DISABLED

Create a branch

git checkout master
git checkout -b cool-thing

Pulling upstream changes

git fetch upstream
git checkout master && git merge upstream/master && git push

Rebasing your changes back onto master

git checkout cool-thing
git rebase master
git push -f