Skip to content
Discussion options

You must be logged in to vote

You can rollback the commits. If you want, change the repo to a private one via the settings and then invite your colleagues personally.
That way, no one else cant view it only your colleagues can.
Use git revert to undo the commit while maintaining history.
If you lack branch protection rules, anyone with push access can make direct commits. On GitHub: Go to Settings > Branches and check if Branch protection rules are configured for key branches like main or master.
Enable branch protection rules to:

  • Require pull requests for changes.
  • Restrict who can push to the branch.
  • Enable approvals for code changes.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by sardor0320
Comment options

You must be logged in to vote
2 replies
@peme969
Comment options

@ghostinhershell
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New To GitHub 👋 New To GitHub Question Ask and answer questions about GitHub features and usage
3 participants