帮助了 AmazingCounters.com 位小伙伴

git 平时遇到的问题记录

 

1.git warning: LF will be replaced by CRLF in 解决办法

git config core.autocrlf false

 

2.git提交时如何忽略一些文件

  http://www.jianshu.com/p/ade52455c3a4

可以直接使用的配置参考

# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

.idea
dist
View Code

 

 

posted on 2017-09-18 10:39  云的旋律  阅读(204)  评论(0编辑  收藏  举报

导航

前端攻城狮分享群