1. 命令行输入:git rebase -i HEAD~2 (i的意思是:interactive,HEAD~2为在历史的前两个提交,同理,HEAD~4就是历史的前四个提交。)
git rebase -i HEAD~2
2. vim出现如下所以文件信息,前面两行就是你的提交信息,比如第一行分别对应为:pick(使用提交)、56a06ef(提交的ID)、change 1: remove one blank line(提交的描述信息)
1 pick 56a06ef change 1: remove one blank line
2 pick edbeab5 change 2: add log on MainActivity
3
4 # Rebase 23198ba..edbeab5 onto 23198ba (2 commands)
5 #
6 # Commands:
7 # p, pick = use commit
8 # r, reword = use commit, but edit the commit message
9 # e, edit = use commit, but stop for amending
10 # s, squash = use commit, but meld into previous commit
11 # f, fixup = like "squash", but discard this commit's log message
12 # x, exec = run command (the rest of the line) using shell
13 # b, break = stop here (continue rebase later with 'git rebase --continue')
14 # d, drop = remove commit
15 # l, label
1 pick 56a06ef change 1: remove one blank line
2 s edbeab5 change 2: add log on MainActivity
3
4 # Rebase 23198ba..edbeab5 onto 23198ba (2 commands)
5 #
6 # Commands:
7 # p, pick = use commit
8 # r, reword = use commit, but edit the commit message
9 # e, edit = use commit, but stop for amending
10 # s, squash = use commit, but meld into previous commit
11 # f, fixup = like "squash", but discard this commit's log message
12 # x, exec = run command (the rest of the line) using shell
13 # b, break = stop here (continue rebase later with 'git rebase --continue')
14 # d, drop = remove commit
15 # l, label = label current HEAD with a name
16 # t, reset = reset HEAD to a label
17 # m, merge [-C | -c ] [# ]
18 # . create a merge commit using the original merge commit's
19 # . message (or the oneline, if no original merge commit was
20 # . specified). Use -c to reword the commit message.
21 #
22 # These lines can be re-ordered; they are executed from top to bottom.
23 #
24 # If you remove a line here THAT COMMIT WILL BE LOST.
25 #
26 # However, if you remove everything, the rebase will be aborted.
27 #
28 # Note that empty commits are commented out
1 # This is a combination of 2 commits.
2 # This is the 1st commit message:
3
4 change 1: remove one blank line
5
6 # This is the commit message #2:
7
8 change 2: add log on MainActivity
9
10 # Please enter the commit message for your changes. Lines starting
11 # with '#' will be ignored, and an empty message aborts the commit.
12 #
13 # Date: Fri Apr 26 16:25:23 2019 +0800
14 #
15 # interactive rebase in progress; onto 23198ba
16 # Last commands done (2 commands done):
17 # pick 56a06ef change 1: remove one blank line
18 # squash edbeab5 change 2: add log on MainActivity
19 # No commands remaining.
20 # You are currently rebasing branch 'master' on '23198ba'.
21 #
22 # Changes to be committed:
23 # modified: app/src/main/java/com/example/jere/retrofit/MainActivity.java
24 #
5. 将之前的两条提交描述信息,修改合并为一条,然后保存退出vim,如下所示:
1 # This is a combination of 2 commits.
2 # This is the 1st commit message:
3
4 change 1: remove one blank line && change 2: add log on MainActivity
5
6 # Please enter the commit message for your changes. Lines starting
7 # with '#' will be ignored, and an empty message aborts the commit.
8 #
9 # Date: Fri Apr 26 16:25:23 2019 +0800
10 #
11 # interactive rebase in progress; onto 23198ba
12 # Last commands done (2 commands done):
13 # pick 56a06ef change 1: remove one blank line
14 # squash edbeab5 change 2: add log on MainActivity
15 # No commands remaining.
16 # You are currently rebasing branch 'master' on '23198ba'.
17 #
18 # Changes to be committed:
19 # modified: app/src/main/java/com/example/jere/retrofit/MainActivity.java
20 #
A ROWID is an identification tag unique for each row of an Oracle Database table. The ROWID can be thought of as a virtual column, containing the ID for each row.
The oracle.sql.ROWID class i
public class DeleteNode_O1_Time {
/**
* Q 60 在O(1)时间删除链表结点
* 给定链表的头指针和一个结点指针(!!),在O(1)时间删除该结点
*
* Assume the list is:
* head->...->nodeToDelete->mNode->nNode->..
格式定义The format specifiers supported by the NSString formatting methods and CFString formatting functions follow the IEEE printf specification; the specifiers are summarized in Table 1. Note that you c
概念
AngularJS is a structural framework for dynamic web apps.
了解更多详情请见原文链接:http://www.gbtags.com/gb/share/5726.htm
Directive
扩展html,给html添加声明语句,以便实现自己的需求。对于页面中html元素以ng为前缀的属性名称,ng是angular的命名空间