I've tried to push my project including Vue code using the below commands.
git remote add origin <repository_url>
git add *
git commit -m "your commit message"
git push -u origin master
But all my vue code located in the vue-passport
folder is ignored. So, I am not able to push vue code to Github. FYI: I am using vue-cli
to build my vue project along with Laravel.
When I use the below commands:
git add .
git commit -m "first commit"
or
git status
It produces an error:
On branch master
Changes were not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in the working directory)
(commit or discard the untracked or modified content in submodules)
modified: vue-passport (modified content, untracked content)
no changes added to commit (use "git add" and/or "git commit -a")
This is my .gitignore
inside vue-passport
folder
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
And this is my .gitignore
file in Laravel.
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.phpunit.result.cache
docker-compose.override.yml
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
/.idea
/.vscode