All Collections
Using Git
Git 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:

To git@git.assembla.com:shabbir-s-test.git
! [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 support@assembla.com

Did this answer your question?