Skip to content

Commit a041980

Browse files
author
Hindrik Bruinsma | DevOps Consultant
committed
Force pushing has its use
As you can keep the history clean and sane. Making merges easier.
1 parent 3958ff8 commit a041980

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests

content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ topics:
2121

2222
**Note:** When working with pull requests, keep the following in mind:
2323
* If you're working in the [shared repository model](/pull-requests/collaborating-with-pull-requests/getting-started/about-collaborative-development-models), we recommend that you use a topic branch for your pull request. While you can send pull requests from any branch or commit, with a topic branch you can push follow-up commits if you need to update your proposed changes.
24-
* When pushing commits to a pull request, don't force push. Force pushing changes the repository history and can corrupt your pull request. If other collaborators branch the project before a force push, the force push may overwrite commits that collaborators based their work on.
24+
* Be very careful when using force pushing changes to a pull request. Force pushing can corrupt your pull request. Rabase your pull request branch based on the default branch. By doing this, you keep the history clear and sane. If other collaborators branch the project before a force push, the force push may overwrite commits that collaborators based their work on.
2525

2626
{% endnote %}
2727

0 commit comments

Comments
 (0)