Git Push Error Solved: How to Fix ‘Failed to Push Some Refs’ in Simple Steps

You finish a chunk of work, run git push, and Git answers with ! [rejected] and error: failed to push some