
git
echo忘川
有问题可联系QQ:806020881
展开
-
如何将本地未提交更改合并到另一个Git分支中
有的时候我们忘记了切换分支,直接在主分支上开始开发一个新的功能,写到一半的时候突然想起来最好是写在一个新的分支上面去,这个时候我们可以通过如下命令:方法一:git stashgit checkout branch2git stash pop方法二:git stashgit checkout branch2git stash list #检查在不同分支中创建的各种存储git stash apply x #选择正确的一个注意:git stash apply,会将当前分支的最后一次缓转载 2020-07-20 11:37:39 · 2790 阅读 · 0 评论 -
Git常见问题:fatal: Unable to create index.lock File exists 错误的解决办法
报错内容:$ git commit -m 'Test'fatal: Unable to create 'D:/MyProject/.git/index.lock': File exists.If no other git process is currently running, this probably means agit process crashed in this repos...原创 2019-11-14 15:09:53 · 16760 阅读 · 3 评论