git

误在主分支编写代码解决

git stash # 暂存
git checkout branch2 # 切换分支
git stash pop # 弹出暂存
原文地址:https://www.cnblogs.com/hellowzd/p/13891584.html