We develop using triangular workflows on git.
For local deployment please create a fork of the Toucan Protocol OffsetHelper repo.
Clone your fork:
git clone [email protected]:YOURUSERNAME/OffsetHelper.git
git config remote.pushdefault origin
git config push.default current
next add the root repository as upstream
:
git remote add upstream [email protected]:ToucanProtocol/OffsetHelper.git
git fetch upstream
Run:
git remote -v
and you should see something like:
origin [email protected]:YOURUSERNAME/OffsetHelper.git (fetch)
origin [email protected]:YOURUSERNAME/OffsetHelper.git (push)
upstream [email protected]:ToucanProtocol/OffsetHelper.git (fetch)
upstream [email protected]:ToucanProtocol/OffsetHelper.git (push)
Feature flow:
git checkout main && git pull --ff-only upstream main
Cmd+shift+. to copy your issue number from linear, and use it as your branch name:
git checkout -b co2-190-small-edits-on-the-home-page
To open a PR push to your fork and open your PR to ToucanProtocol/OffsetHelper
.