latest 20 messages by luukth
+
[2016-04-07T12:24:05Z]
luukth
okay thank you
+
[2016-04-07T12:22:48Z]
luukth
So do I need to do git rebase -i HEAD~2 or git interactive_rebase -i HEAD~2
+
[2016-04-07T12:10:25Z]
luukth
So now that last question is. If I have 3 commits. The Initial commit, commit 1 and commit 2. How can I remove commit 1 but keep commit 2?
+
[2016-04-07T10:55:14Z]
luukth
Yes thank you it worked.
+
[2016-04-07T10:51:10Z]
luukth
So if I do "git reset --hard HEAD^" the head will be commit 1?
+
[2016-04-07T10:50:56Z]
luukth
yes head is commit 2
+
[2016-04-07T10:46:08Z]
luukth
And I only want to remove commit 2
+
[2016-04-07T10:46:01Z]
luukth
intial, commit 1, commit 2
+
[2016-04-07T10:45:56Z]
luukth
No I have 3 commits
+
[2016-04-07T10:40:12Z]
luukth
And I want to remove commit 2 how would I do that?
+
[2016-04-07T10:40:01Z]
luukth
So now for example I have 3 commits: https://gyazo.com/b403e93cd5a5fcafa8c0135c2cd9d261
+
[2016-04-07T10:37:29Z]
luukth
okay thanks so now the test commit has been removed
+
[2016-04-07T10:36:43Z]
luukth
no
+
[2016-04-07T10:35:11Z]
luukth
You can see the first commit, and also a test commit. I want to remove that test commit.
+
[2016-04-07T10:34:56Z]
luukth
https://gyazo.com/348da241cb8fd8d9ead76b0f6c375fdc
+
[2016-04-07T10:34:35Z]
luukth
wait I will send you a screenshot
+
[2016-04-07T10:34:24Z]
luukth
And there is only one line so if I remove that it will abort the rebase
+
[2016-04-07T10:34:06Z]
luukth
However, if you remove everything, the rebase will be aborted.
+
[2016-04-07T10:34:06Z]
luukth
I also get this message in the text editor when I need to remove the 'pick'
+
[2016-04-07T10:32:17Z]
luukth
what do you mean with sha1-of-that-commit^