I am facing problem in the creating a branch from upstream. Let me explain my issue: I forked one repo to work on it.
I made some changes and did 3-4 commit/push into the branch which is master. Since those changes don’t need to merge(pull) into the upstream branch. Then I have to discard those commit and sync with the upstream branch. How can I remove those commit to my branch?
Can I create a new branch which is based on current head of upstream?