I am quite new to Git and I joined a company as an intern. I (stupidly) started all of my branches by pulling our staging environment. So when I compare on github, there are like a hundred commits, and then mines. The issue is that there are waaaaay too many conflicts to push these branches on master.
That's why I'm desperately trying to find a way to start a branch from a specific commit without having the previous (i.e. the ones coming from the staging pull) ones, only the latest. For example :
git pull origin staging
[I did my stuff]
git commit -m "some stuff done"
[some other stuff]
git commit -m "other stuff done"]
I would like to go back to the commit "some stuff done" without having everything that the "pull origin staging" has done and also keeping "other stuff done".
I have already checked and tried the solutions on this topic but it still keeps the old commits.
Thank you !