Skip to main content
All CollectionsUsing GitGit Troubleshooting
Failed to Push Some Refs | Git Error
Failed to Push Some Refs | Git Error
Toshi Dávila avatar
Written by Toshi Dávila
Updated over a week ago

You ran git push and got an output like this:

! [rejected] your-branch -> your-branch (non-fast-forward)

This means that someone else pushed a commit to the same branch you're pushing to, but you don't have that commit on your laptop yet. This can happen if it has been awhile since you ran "git pull" on a branch that many people contribute to, such as staging.

To fix this issue, run:

git pull origin <your-branch>
git push origin <your-branch>

Have questions? Email us

Did this answer your question?