Collaborating via another person's git branch
Every day working with git we create Pull Requests (PRs). This process is the bread and butter of collaboration with git: forking a repository, creating a branch to implement a fix and then sending a PR to the maintainer. For example see the GitHub Docs: Creating a pull request from a fork. The other day I came across a slightly different case - contributing to someone else’s in-progress pull request. They had a branch open on their own fork of a project - and the change I wanted to send was for content only on that branch. Git supports this process (in fact the every-day case is just a specific example where the PR is to the core repository and the target branch is main). GitHub also provides tools to support this process, but the workflow is a little different from the every-day case because both the base and the head of the PR need to be set away from their usual defaults. ...