今天把自己的博客push到Github的时候遇到了问题,
To git@github.com:yaoxiaobei/webPage.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:yaoxiaobei/webPage.git'
hint: Updates were rejected because the tip of your current branch is behind
上网查了一下,是远程仓库中代码版本与本地不一致冲突导致的。
解决方法就是先pull一下,然后再push。
还有一个比较简单的问题,记录一下,弹性盒子display:flex和justify-content都要写在父元素上,而不是我以为的display写在父元素,justify-content写在子元素上。