Communities for your favorite technologies. Explore all Collectives
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Get early access and see previews of new features.
git branch -f-force <branch-name> [<new-tip-commit>]
If new-tip-commit is omitted, it defaults to the current commit.
new-tip-commit
new-tip-commit can be a branch name (e.g., master, origin/master).
git branch -f <branch-name> [<new-tip-commit>]
If new-tip-commit is omitted it defaults to the current commit.
git branch --force <branch-name> [<new-tip-commit>]
git branch -f <branch-name> <new[<new-tip-commit>commit>]
git branch -f <branch-name> <new-tip-commit>
git branch -f branch<branch-namename> new<new-tip-commitcommit>
git branch -f branch-name new-tip-commit