[petsc-dev] git errors when trying to push to a fork.

Paul Mullowney paulm at txcorp.com
Mon Mar 25 10:38:34 CDT 2013

Here's an error with git I don't know how to resolve.

[paulm at ivy petsc]$ git push 
To https://pmullowney@bitbucket.org/pmullowney/petsc-aijcusparse-icc.git
  ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again.  See the 'Note about
fast-forwards' section of 'git push --help' for details.

Should I do:
git pull -u
And then try to push? Presumably, this will pull from my fork and not 
'next' or 'master'?


More information about the petsc-dev mailing list