Skip to content

Git

Frequent Commands

  1. Undo latest commit git reset --soft HEAD~1

  2. How to protect a branch?

    • Enable "do not allow bypassing the above settings"
    • Enable "required status checks" and making sure there's at least 1 required status check.
    • Enable "allow specified actors to bypass required pull requests" and specifying the admins