记录 Markdown 遇到的问题

Please clean your repository working tree before checkout

原因: > 有时候在写代码前未更新远程代码,会出现代码冲突。

1
2
3
4
5
1.git stash 先将本地修改存储起来

2.git pull 拉取远程,这一步骤在 vscode 执行会快很多

3.git stash pop 还原暂存内容