I create a new repo and want to push my project. But I have some files like a config.js. I want to push config.js once. I already push it, add config.js to .gitignore, but changing of config.js putting to commit. How I can push it once?
.gitignore:
node_modules/
DB/
sessions/
git status
git status
On branch master
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .gitignore
modified: DB/DB.js
modified: DB/pg.js
modified: app.js
modified: policies.js
modified: rights.js
deleted: sessions/ed83156281f80feb08ede1b087d0a91bd34e78eca8f210d4c0a0b8b8c1b50390.ses
Untracked files:
(use "git add <file>..." to include in what will be committed)
rightsDict.js
Why my folder DB in list?