Answer the question
In order to leave comments, you need to log in
How did git add unknown commits?
Good afternoon
In general, such a problem, after adding a commit, many unknown commits appeared, maybe someone met with this, tell me how to remove them, and why they appeared.
Answer the question
In order to leave comments, you need to log in
This is called merge bubbles. Git creates a merge commit during every pull operation. When merging 2 branches, Git can either merge with a merge commit or rebase without creating new commits. Someone set it up so that it always creates merge commits.
The branch.autosetuprebase setting is responsible for this Git behavior.
This setting can have 4 values:
* never - Git will never rebase
* local - Git will only rebase on local branches
* remote - Git will only rebase on remote branches
* always - Git will always rebase.
For convenience, set it to always globally.git config --global branch.autosetuprebase always
It's just that git merges with every pull, it merges your branch with the remote one, this is normal, nothing to worry about
Thank you, well, since it’s so good, I couldn’t remove these merdzhi, well, I created a new one, the repository was deleted)))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question