报错 hint: Updates were rejected because the remote contains work that you do 解决方法

1. git pull origin master --allow-unrelated-histories

2.git pull origin master

3.git init

4.git remote add origin ssh://[email protected]:10022/yanhui/webweb.git (可忽略)

5.git add .


6.git commit -m 'testst'


7.git push -u origin master

猜你喜欢

转载自www.cnblogs.com/yanhuidj/p/9301328.html