About 487,000 results
Open links in new tab
  1. Managing the push policy for your repository - GitHub Docs

    On GitHub, navigate to the main page of the repository. Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings. …

  2. How do I properly force a Git push? - Stack Overflow

    Apr 1, 2011 · git push --force overwrites the remote branch, while git push --force-with-lease only overwrites the remote branch if your local copy is aware of all of the commits on the remote …

  3. How to Git force push - Graphite.dev

    Where <remote-name> is usually origin (the default name Git gives to the remote you cloned from), and <branch-name> is the name of the branch you want to force push. Forcing a Push …

  4. How to Force Git Push? - GeeksforGeeks

    Jul 23, 2025 · Sometimes, you might need to force push changes to a repository to overwrite previous commits. This article will guide you through creating a GitHub account, setting up a …

  5. Managing a branch protection rule - GitHub Docs

    You can create a branch protection rule to enforce certain workflows for one or more branches, such as requiring an approving review or passing status checks for all pull requests merged …

  6. Using the ‘–force’ and ‘–force-with-lease’ options with git push

    Jan 27, 2024 · When you’re working with Git, sometimes you may need to overwrite the history on the remote repository for various reasons, such as fixing mistakes or cleaning up commits. …

  7. About protected branches - GitHub Docs

    You can protect important branches by setting branch protection rules, which define whether collaborators can delete or force push to the branch and set requirements for any pushes to …

  8. git - Force push current branch - Stack Overflow

    Jul 12, 2012 · To gain full voting privileges, I often rebase feature branches and then want to force push them to the server. Is there any shortcut for git push --force origin <current branch>? I …

  9. Force Push Allowlist users can't be updated by API - GitHub

    3 days ago · Description On branch protection creation (POST) or update (PATCH), setting force_push_allowlist_usernames has no effect. How to reproduce choose a repository create a …

  10. Enabling push protection for your repository - GitHub Docs

    To enable push protection for a repository, you must first enable Secret Protection. You can then enable push protection in the repository's "Advanced Security" settings page following the …