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 month ago

Some users receive an error when pushing to Git. For example, you ran Git push and received output similar to the following:

To git@git.assembla.com:shabbir-s-test.git
! [rejected] your-branch -> your-branch (non-fast-forward)

This error results when someone else pushed a commit to the same branch you're pushing to, but you don't yet have that commit on your machine. This can happen if it's been a while since you ran git pull on a branch that many people contribute to, such as staging.

To resolve this issue, run the following code:

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

Have questions? Email us support@assembla.com

Did this answer your question?