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 ~ ➜  

How to solve PGP signatures are corrupted in Arch Liniux ?

 This is the most irritating error for me, after trying multiple solutions, finally this is what worked for me, make sure you execute all these commands as sudo.

rm -rf /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate
pacman -Syuu
pacman -Sy archlinux-keyring

Hope it helps.