M
M
Maksipes2020-05-19 23:58:50
git
Maksipes, 2020-05-19 23:58:50

How to push to the repository without merging remote changes?

The situation is this:

1) there is a certain branch in the repository
2) after it was spooled, they did it locally - Reset current brunch to here , discarding the last few commits
3) after throwing other commits into it
4) trying to push the branch, but Git swears - Remote changes need to be merged before

pushing

actually this is the question - ?

Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2020-05-20
@jcmvbkbc

git push +HEAD

T
toxa82, 2020-05-20
@toxa82

git push -f

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question