git


全局配置

//配置用户名
git config --global user.name "xxx"
//配置邮箱
git config --global user.email "xx@xx.com"
//让Git不要管Windows/Unix换行符转换的事
git config --global core.autocrlf false
//避免git gui中的中文乱码
git config --global gui.encoding utf-8
//避免git status显示的中文文件名乱码
git config --global core.quotepath off
//关闭忽略大小写(Windows)
git config --global core.ignorecase false

.gitignore

.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local

# Log files
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
package-lock.json


*.class
target/
.settings/
.project
.classpath
.idea/
*.ipr
*.iml
*.iws