I was working on a feature branch to which I had pushed some commits. I had an issue with my machine and had to do a fresh install and pull the remote branch to continue working on the issue. the problem comes in when I try to squash all the commits. If try
git rebase -i master
I only get commits after the fresh install. If I then try using the SHA of the commit before my first commit on that branch,I have other commits that belong to other branches that i do not want to modify. Same applies if i try specifying the number of commits as in
git rebase -i HEAD~10
(I have 10 commits in the branch)
I have tried everything I have come across in similar posts including
soft --reset
but nothing seems to work in this case How can I solve this