Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Devops
  3. Question
Devops

! [rejected] master -> master (non-fast-forward) - What does “Git push non-fast-forward updates were rejected” mean?

Asked by Andrea Bailey Jun 1, 2021 3.5K views 1 answer
Share

About this question

I'm using Git to manage my two computers and my development. I'm trying to commit changes to GitHub and I'm getting the error.


Failed to push some refs to . To prevent you from losing history, non-fast-forward updates were rejected. Merge remote changes before pushing again.


What could be causing this and how can I fix this?


EDIT:


Pulling the repo returns the following:


*branch master->master (non-fast-forward) Already-up-to-date

Pushing still gives me the aforementioned error.

Your answer

1 Answer

More Devops discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest DevOps Blogs

Guides, tips and career advice on DevOps from JanBask experts.