Resolve Git Update Rejected Because Branch is Behind Error in Terminal on Mac - VicPhanDevOps/mac GitHub Wiki

• The following resolution is for if your updates are rejected because the tip of your current branch is behind.

• Type git pull and press the “return” key to synchronize local repo with remote repo.

• Type git add . and press the “return” key to add changes to staging.

• Type git commit -m “< commit message >” and press the “return” key to commit the changes with a message.

• Type git push and press the “return” key to push changes to remote repo and it will be successful this time.