我的github存储库不接受某些js文件?

时间:2019-01-03 05:44:56

标签: angular github jhipster

我安装了一个jhipster项目,之后我想将项目上传到github,但是无法上传js文件(jquery.js,angular.js和ui-swagger.js文件),其他文件是okey。我可以在我的仓库中看到其他文件。

我的.gitignore文件包含以下行:

# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see 
http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*  
# Project Specific   
/target/www/**
/src/test/javascript/coverage/
/src/test/javascript/PhantomJS*/

# Node   
/node/
node_tmp/
node_modules/
npm-debug.log.*


# SASS   
.sass-cache/

# Eclipse   
*.pydevproject
.project
.metadata
 tmp/
 tmp/**/*
 *.tmp
 *.bak
 *.swp
 *~.nib
 local.properties
.classpath
.settings/
.loadpath
.factorypath
/src/main/resources/rebel.xml

# External tool builders
.externalToolBuilders/**

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

# Intellij
.idea/
*.iml
*.iws
*.ipr
*.ids
*.orig
classes/


# Visual Studio Code   
.vscode/


# Maven   
/log/
/target/


# Gradle   
.gradle/
/build/


# Package Files   
*.jar
*.war
*.ear
*.db


# Windows   
# Windows image file caches
Thumbs.db

# Folder config file
Desktop.ini


# Mac OSX   
.DS_Store
.svn

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes


# Directories  
/bin/
/deploy/


# Logs   
*.log


# Others   
*.class
*.*~
*~
.merge_file*


# Gradle Wrapper

!gradle/wrapper/gradle-wrapper.jar

# Maven Wrapper
!.mvn/wrapper/maven-wrapper.jar


# ESLint
.eslintcache

如何解决该问题?无法上传3个文件。

2 个答案:

答案 0 :(得分:0)

您是否检查过.gitignore文件?或运行命令以查看要跟踪的文件

  

git ls-tree -r分支名称-仅名称

答案 1 :(得分:0)

您暂存了这些文件吗?尝试git add <file_name>,然后提交并将其推送到远程。