Git pull 强制拉取并线上代码覆盖本地

当多人协同开发时, 或者服务器代码被人改动时, git pull 时,提示你本地代码有改动,需要提交合并.... git强制拉取代码 git fetch --all 回退到当前版本修改之前的状态 git reset --hard origin/master 注意:你当前的分支 获取代码服务器最新版本 git pull 出自:Git pull 强制拉取并线上代码覆盖本地

remarkable搭配markdown-toc自动生成博文目录

前段时间写过一篇关于showdown和showdown-toc插件自动生成目录的博客 ⬅️点击查看 为什么要改进 showdown-toc作为专门为showdown开发的 toc 插件,搭配使用都非常方便 安装showdown ,showdown-toc toc插件集成到showdown代码中 const Showdown = require('showdown'); const showdownToc = require('showdown-toc'); const showdownHighlight = require("showdown-highlight"); const to

回到顶部