$ git rm -r --cached .idea/
error: the following file has staged content different from both the
file and the HEAD:
.idea/workspace.xml
(use -f to force removal)# 提示用-f进行删除# 继续输入一下命令可以删除$ git rm -rf --cached .idea/
rm '.idea/compiler.xml'rm '.idea/description.html'rm '.idea/encodings.xml'rm '.idea/inspectionProfiles/Project_Default.xml'rm '.idea/misc.xml'rm '.idea/modules.xml'rm '.idea/uiDesigner.xml'rm '.idea/vcs.xml'rm '.idea/workspace.xml'
$ git rebase -i HEAD~5
pick 95320cb3 增加limit条数限制,优化sql
pick e848c547 增加动态控制日志级别的 增加日志入为异常的时候保存丢失的数据
pick 5664ee84 增加异常处理,当对象null时跳过。
edit 468722a5 1.批量上下架判断子集情况 2.下发修改
pick 4fb37a5f 修改
# Rebase ed5437ed..4fb37a5f onto ed5437ed (5 commands)## Commands:# p, pick = use commit# r, reword = use commit, but edit the commit message# e, edit = use commit, but stop for amending# s, squash = use commit, but meld into previous commit# f, fixup = like "squash", but discard this commit's log message# x, exec = run command (the rest of the line) using shell# d, drop = remove commit## These lines can be re-ordered; they are executed from top to bottom.## If you remove a line here THAT COMMIT WILL BE LOST.## However, if you remove everything, the rebase will be aborted.
将想要改变信息的记录由pick->edit
wq保存
提示信息如下
1
2
3
4
5
6
7
8
Stopped at 72a09870... 1.批量上下架判断子集情况 2.下发修改
You can amend the commit now, with
git commit --amend
Once you are satisfied with your changes, run
git rebase --continue