Git

查看用户名和邮箱地址:

$ git config user.name

$ git config user.email

修改用户名和邮箱地址:

$ git config --global user.name "username"

$ git config --global user.email "email"

.gitignore:

.idea/
logs
out
*.iml
.project
.classpath
.settings
*/target
*/.settings
*/.classpath
*/.project
*/*.iml
*/*.ipr
*/*.iws
*/build
.DS_Store
*/logs
*/scripts/*.pyc
*/scripts/*.*~
src/main/webapp/WEB-INF/classes
src/main/webapp/META-INF/
src/test/resources/conf_path.properties
target
.module-cache
 
.sass-cache
src/main/webapp/static/css/**/*.css*
**/gensrc/**/*Mapper.xml
**/gensrc/main/java

Git忽略规则和.gitignore规则不生效的解决办法

你可能感兴趣的:(Git)