GIT Push request keeps failing

Answered

So basically I can't push to my repository. Error is

5:51 PM Push rejected
Push master to origin/master/main was rejected by remote

I have permission to push to the repository and don't understand why its doing this.

1
3 comments

Check the Console tab of the Git toolwindow to see the more detailed message - it may give a clue why the push is rejected.

The most common reason for a rejected push is (non-fast-forward) or (fetch-first) - it means the remote repository has some commits not present in your local one, and you need to pull changes first, and then retry push.

1

Hey, I found the error in the console. It says I am committing on behalf of a different source. How do I change it?

0

Hey! I found my issue! I forgot I had a different git email set as the user! Just had to open up git bash and change it. Thanks for helping me! I probably would've not seen the console.

0

Please sign in to leave a comment.