pandaomeng / gitalk-comment

使用gitalk存储博客的评论
0 stars 0 forks source link

git 命令-记录 | Hexo #15

Open pandaomeng opened 5 years ago

pandaomeng commented 5 years ago

http://www.pandaomeng.com/2018/11-19-git-command/

git 命令-记录 强制同步(让本地和远端一致) 线上服务器出现: 您的分支领先 'origin/master' 共 1 个提交。 原因:改动了线上服务器的文件,导致和orgin端的master出现了偏离。 处理方法:丢弃修改,强制与oring/master 一致 123git fetch --allgit reset --hard origin/mastergit pull