git ! [rejected] main -> main (fetch first) code example Example: ! [rejected] master -> master (fetch first) git fetch origin master git merge origin master