I have the following history in my branch.
- "commit 3" (origin/master)
- "commit 2"
- "commit 1" (master 2 behind)
- ... previous commits
I want to remove commit 2 and 3 from the history. So that commit 1 is the latest. I am the only person using this repository.
I am using SourceTree and in the Terminal I entered the following:
git rebase -i
Then I get a colorful screen where I can't enter commands. What can I do?
EDIT:
push error
ssh: connect to host <myhost> port 22: Bad file number
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.