Git: How to set set default branch as master?

 



  root@arch-host ~ ✖ git config --add --global user.name "<username"
  git config --add --global user.email "email@yahoo.com"

  root@arch-host ~ ➜  git config --global --unset rerere.enabled
  git config --global init.defaultBranch master

    

root@arch-host ~ ➜  cat ~/.gitconfig 

[user]

        name = rxxxx

        email = xxxxxx@yahoo.com

[init]

        defaultBranch = master


root@arch-host ~ ➜  

0 comments:

Post a Comment