美文网首页React Native学习
react-native git上传代码时,忽略node_mod

react-native git上传代码时,忽略node_mod

作者: oc123 | 来源:发表于2018-06-19 18:14 被阅读4次
用VSCode打开整个项目,新建.gitignore文件,如图:
新建截图.png
在.gitignore文件中添加如下内容即可:
# OSX
#
.DS_Store

# Xcode
#
*.xcworkspace
Podfile.lock
Pods/
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
UserInterface.xcuserstate  
# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

# node.js
#
node_modules/
npm-debug.log

# BUCK
buck-out/
\.buckd/

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
.vscode

注意:这个配置的生效期是在第一次commit之前才行!

相关文章

网友评论

    本文标题:react-native git上传代码时,忽略node_mod

    本文链接:https://www.haomeiwen.com/subject/bbqzeftx.html