Frequent Commands
Undo latest commit
git reset --soft HEAD~1
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
- (Ref)