Skip to content

Instantly share code, notes, and snippets.

@jnareb
Created July 12, 2017 17:01
Show Gist options
  • Save jnareb/197bd821ea0dac9716263167bdfbe750 to your computer and use it in GitHub Desktop.
Save jnareb/197bd821ea0dac9716263167bdfbe750 to your computer and use it in GitHub Desktop.
Git nie pozwala wykonać `git push` ponieważ repozytorium nie jest w sytuacji fast-forward
$ git commit -a --amend
[...]
$ git push
To https://git.company.com/repo.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://git.company.com/repo.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g. 'git pull ...')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment