Z
Z
zer12017-06-10 21:39:19
git
zer1, 2017-06-10 21:39:19

How to push a modified commit? If it is already in the repository.?

git push
To github.com:
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (eg
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor, 2017-06-10
@v_decadence

git push --force
Googling about possible problems yourself.

P
Papa, 2017-06-11
Stifflera @PapaStifflera

It also says in English in white what needs to be done.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question