push to origin / master was rejected error solutions (IDEA)

Solutions are as follows:

1. Change to the directory where your own project, right click and choose GIT BASH Here, Idea can use Alt + F12

2. Enter the command sequence in terminl window:

git pull

git pull origin master

git pull origin master --allow-unrelated-histories

3. Re-push the idea in their own projects, success! ! !

Guess you like

Origin www.cnblogs.com/shundong106/p/10995693.html