DEV Community

Discussion on: Git TIP - Why you should not keep a local master branch ?

 
jessekphillips profile image
Jesse Phillips • Edited

Committing to a detached head is risky because if you change branches you'll need to use reflog to retrieve it. However a branch name can be added at any time

Git branch foo