Commit a68b4d3b authored by Priyan Sureshbabu's avatar Priyan Sureshbabu Committed by Evan Read

Doc | Add details about allowed to force push

parent 1068a86a
......@@ -228,8 +228,13 @@ git push --force-with-lease origin my-feature-branch
```
If the branch you want to force-push is [protected](../../user/project/protected_branches.md),
you can't force-push to it unless you unprotect it first. Then you can
force-push and re-protect it.
you can't force push to it unless you either:
- Unprotect it.
- [Allow force push](../../user/project/protected_branches.md#allow-force-push-on-a-protected-branch)
to it.
Then you can force push and protect it again.
## Merge conflicts
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment