Can I sync a repo that I forked on GitHub without creating a commit in the parent?

How do I sync a repo that I forked on GitHub without creating a commit in the parent?

I found several sources of instructions (such as this and this , as well as several related SO questions) that usually agree on how to do this; but all of them, at least for many months, and not one 100% knows whether the procedure creates a commit in the parent repo.

Is it possible to synchronize the repo that I forked on GitHub without creating a commit in the parent? Will these procedures create a commit in the parent repo?

+5
source share
1 answer

If by โ€œparentโ€ you mean the source repo from which you branched, then yes, the methods you link to update your fork with the latest changes from the โ€œparentโ€ repo (for the selected branch) without changing the โ€œparentโ€ repo.

In the general case, transfer requests (PR) should not arise from the plug and aim at the โ€œparentโ€ repo, this can also be the opposite (as shown in the related articles). You can also write PR from one branch to another branch within the same repo.

+3
source

Source: https://habr.com/ru/post/1262180/


All Articles