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