Usually I create a branch by running a command like git checkout -b [branch-name] [starting-branch]. In one case, I forgot to include the starting-branch
git checkout -b [branch-name] [starting-branch]
starting-branch
You want the branch to point to a different commit. You can do that by running
git branch -f
Note that if branch-name is the current branch, you have to switch to a different branch first, for example with git checkout master.
branch-name
git checkout master