Git related configuration

Time:2021-10-25

Configure user name and mailbox

//Configure user name
git config --global user.name "username"
//Configure mailbox
git config --global user.email "[email protected]"

Generate SSH key

ssh-keygen -t rsa -C "[email protected]"

Ignore changes in file permissions or file owners

#Current version Library
git config core.filemode false
#Global configuration
git config --global core.fileMode false

This work adoptsCC agreement, reprint must indicate the author and the link to this article

This is not a bug, it’s just an unlisted feature!