Git add not adding functions directory and files within for tracking

Background

I recently changed the location of my project on my local machine which caused some minor issues but after updating some libraries and installing with npm everything worked well.

The issue at hand is that now my index.ts file for my Google Cloud functions is not being tracked. In fact, all files within the functions directory is not being tracked by git. However, changes in other areas of the project are

The directory is also not in my .gitignore file at all

What I've tried

When I run git add functions/src/index.ts my shell does not throw any errors however the problem still remains that the file is not being tracked.

Other posts say to delete a trivial file, rename something, add a new file or undo changes that the IDE is tracking and git will recognize the file/directory again. This failed.

I also ran git update-index --really-refresh and this did nothing.

here is my .gitignore (sorry in advance, its a little messy)

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
firebase-debug.log*
 
# Firebase cache
.firebase/
 
# Firebase config
 
# Uncomment this if you'd like others to create their own Firebase project.
# For a team working on the same Firebase project(s), it is recommended to leave
# it commented so all members can deploy to the same project(s) in .firebaserc.
# .firebaserc
 
# 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/
 
# 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
 
# Mac OS X
*.DS_Store
 
# Xcode
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
*.xcuserstate
Bucket.xcworkspace/
xcuserdata/
 
# Cocoapodsl
Pods/


from Recent Questions - Stack Overflow https://ift.tt/374vs8S
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation