R
R
Romi2021-05-04 11:01:45
git
Romi, 2021-05-04 11:01:45

After git rebase master writes: "Your branch and "origin / my-branch" split and now have 15 and 7 different commits" - what to do?

Then

git rebase master

it writes:

Your branch and "origin/my-branch" have split and now have 15 and 7 different commits each respectively. (use "git pull" to merge the external branch into yours)


But, after all, if I do a "git pull" - then it will return the old database back? Or not? :)

In general, what to do? -)

The local branch my-branch is linked to origin/my-branch respectively. I did a git rebase master from it to have the changes from the master, and now I don't understand how to sync correctly with the github branch.

If possible, please answer with a line of code (including) please.

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
toxa82, 2021-05-04
@romicohen

git push -f
But be aware that this will overwrite the branch in the remote repository with your local branch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question