Forking Erlang/OTP
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
- Use the Github UI to create a fork of
erlang/otp
. - Use
git clone
to clone the repository to your machine. - 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