https://git-scm.com/book/tr/v2/Git-Basics-Viewing-the-Commit-History gil log 来查看commit的记录 Other maintainers prefer to rebase or cherry-pick contributed work on top of their master branch, rather than merging it in, to keep a mostly linear history. Wh…
假设我的git log 如下: commit 5511533dda6fee6982175fafca1f4bd5692e3d9c (HEAD -> trans, origin/trans) Author: 暮晨 <362864550@qq.com> Date: Tue Nov 13 23:57:05 2018 +0800 EX.is is not what it is commit eff078c67243a71a5ef645ddadfdaef2f374eff1 Author: 暮晨 &l…
在使用git pull拉取服务器最新版本时,如果出现error: Your local changes to the following files would be overwritten by merge: ... Please, commit your changes or stash them before you can merge.错误时,代表这代码冲突了,本地修改了代码导致无法覆盖服务器上的. 此时有如下解决方法: (注意:在做所有操作前,切记要先备份本地代码.) 1.如果希望保留…