Your local changes to the following files would be overwritten by checkout


今日在dev分支修改代码,突然领导让看release分支代码有没有问题,checkout过去提示会覆盖本地代码。于是用到了之前pull代码时,防止覆盖本地修改的代码的命令:

当然还有其他方法:https://blog.csdn.net/a303549861/article/details/82467400

Git