What's the preferred workflow when contributing to open source projects #7186
-
I've tried to search this pretty much everywhere, but found no definite answer, and maybe someone else will find this useful as well. I'm contributing to an open source project, I've created a fork, and set up Using command-line with git fetch upstream
git switch main
git merge upstream/main What's the corresponding Would it be something like this: jj git fetch --remote upstream
jj new main@upstream main or should I just rebase: jj git fetch --remote upstream
jj rebase -b main -d main@upstream Thank you for this great project! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The equivalent to the
That's exactly what you wrote except that I swapped the two arguments to You could instead rebase, as you said, but that's a discussion that's mostly unrelated to whether you |
Beta Was this translation helpful? Give feedback.
The equivalent to the
git
commands would be this:That's exactly what you wrote except that I swapped the two arguments to
jj new
so your fork'smain
branch becomes the first parent. You may or may not care about that.You could instead rebase, as you said, but that's a discussion that's mostly unrelated to whether you
git
orjj
. The first page I found when I just googled it was https://www.atlassian.com/git/tutorials/merging-vs-rebasing