Git push rejected

To git@github.com:xxx/xxxxx.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:xxx/xxxxx.git'
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.

I got this error when I tried to make some changes. When I try to extract from a repo, I get

From github.com:xxx/xxxxx
 * branch            master     -> FETCH_HEAD

What should I do to solve this problem? In fact, it was only me at the repo, I had only two thrusts from someone else. Do I need to drain correctly?

+5
source share
1 answer

, . fetch , . , , , . , .

+11

All Articles