commit to master Posted by vitich on Wednesday, 19 January 2022 Розділи: bashGNU/Linuxgit Have you ever accidentally committed to master? ) To prevent this from happening again, I just added to my .bashrc: cd ~/my_git_repo && git checkout vitich && cd -