I did some wrong rebasing and conflict resolution in Git, so I ended up in this stupid situation:
* 8379515 (HEAD, origin/master, origin/HEAD, master) Merge branch 'binary-mobile'
|\
| * 21b247a (binary-mobile) Add Binary Mobile
| * c66dced Add Music Collection
* | cbbe364 Add task Music Collection
|/
* 8e9ccae Update README.md
* 31d2050 Reorganize repo and add README files
* 88fe4fd Rename readme file
* 8ed72bd Reorganize the structure of the repo
* 219a25a Update README.md
* 60921e6 Create README.md
* 1de4f36 Initial commit
My problem is that commits Add task Music Collection
and Add Music Collection
are the same. I want to:
- have my branch follow a single path;
- only have one commit with the title
Add Music Collection
.
Could I just do git rebase -i 8e9ccae
and then squash c66dced
into cbbe364
and rename cbbe364
to Add Music Collection
? I think that the problem in the first place was that I had pushed the commits I wanted to rebase to Github, but I thought that as long as nobody else is working with them, this is ok?