Gut pull before commit your changes

Stash your local changes:

git stash
Update the branch to the latest code

git pull origin development
Merge your local changes into the latest code:

git stash apply

Add, commit and push your changes

git add .
git commit -am ‘updated’
git push origin development

Leave a Comment

Your email address will not be published. Required fields are marked *