V
V
Vitaliy Semyanchuk2014-01-13 13:25:43
git
Vitaliy Semyanchuk, 2014-01-13 13:25:43

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.
em3a2l1q7569.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Kiselev, 2014-01-13
@alexeykiselev

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

A
Anatoly, 2014-01-13
@taliban

It's just that git merges with every pull, it merges your branch with the remote one, this is normal, nothing to worry about

V
Vitaliy Semyanchuk, 2014-01-13
@fix20152

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 question

Ask a Question

731 491 924 answers to any question