Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-dev] Github workflow

Hi,

On Tue, Mar 22, 2022 at 10:46 AM Wim Jongman <wim.jongman@xxxxxxxxx> wrote:
  1. Go to your fork and "Fetch upstream" [1]
Why do you need to do that? Particularly if you never use master/main?
FWIW, may workflow is
$ git fetch eclipse master
$ git checkout FETCH_HEAD
[... do changes ...]
$ git commit -m "My super fix (#123)"
$ git push me HEAD:refs/heads/issue-123
Create PR
If needed, improve, rebase, `git push me --force HEAD:issue-123`
Upon PR merge, just remove my issue-123 branch.

This allows to not care about the master/main branch in my fork. I can even happily delete it, and it gives me more guarantee to keep in sync!

Back to the top