Git branches have no rules enforced, but there are conventions to follow. You can use commands like git reset and git rebase to manipulate branches. It's recommended to run git pull often and avoid committing directly to the main branch. The reflog can be used to undo changes in a branch.

1m read timeFrom wizardzines.com
Post cover image
Table of contents
you might expect git to enforce some rules about branchesthere are literally no rulesinstead of rules, we have conventionsour only saviour: the reflog
1 Comment

Sort: