首先

更新工作的状态树

1
git add .

之后

输入如下命令,将文件放在堆栈中,获取更新后,再弹栈

1
2
3
git stash
git pull
git stash pop

执行这几条简单的命令之后,主题便可以无损更新。