I want to upload the project to remote but I can't with the first few commits.
For example I have git commits like this:
...(Many new commits)
- Presentable Commit
- Commit I don't want to share #4
- Commit I don't want to share #3
- Commit I don't want to share #2
- Commit I don't want to share #2
- Commit I don't want to share #1
I looked through sources that suggested using git rebase -i
, I expected it to just remove the commits which I squashed but that seems to cause merge conflicts even though I am not changing anything at all. How can I just cut off the tail as if I didn't make those 4 commits?