git checkout -f
--force
git checkout -f yourbranch git branch -M yourNewBranch
See also
git checkout
[-b
|master | main | -f
]
Advertising:
--force
git checkout -f yourbranch git branch -M yourNewBranch
git checkout
[ -b
| master | main | -f
]Advertising: