Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rajucs/d0c060d17b0248dcbd4f559a9f420a12 to your computer and use it in GitHub Desktop.
Save rajucs/d0c060d17b0248dcbd4f559a9f420a12 to your computer and use it in GitHub Desktop.
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://[email protected]/username/repository-name.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
To fix this error try this command-
git push origin master --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment