Git Tab button not working?


#1

I saw Atom has a Git Tab, I try to commit to master but when I hover it I see a red circle.I think si disabled or something.How do i make it work ?


#2

Have you staged your changes and added a commit message?


#3

I see the unstaged changes in Git Tab.Right after it has a tab Stage All but noting happens when I click.How i Stage All ?I can with terminal but on Atom it stays the same.


#4

I make it work but the problem was with some node_modules I have a gitignore and all of them was there and I can’t stage them lol.That’s why the stage all don’t work …


#5

Can you help me I can’t resolve this issue. I can’t stage the node_modules. Here is an image

There are not all the node_modules folders just 30 files approximate.


#6

You should not be pushing node_modules/ through git. You’ll end up massively increasing the amount of files you push up and down, and you don’t need to do that at all because npm install takes care of downloading and installing all dependencies (and doing any configuration necessary for your system).

As for the last batch of files, note how they’re all in a .bin/ folder. That’s probably also in your .gitignore, probably as .*.


#7

So How I should I do, here is the .gitignore:
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
/.idea
/.vscode
/.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.env
.phpunit.result.cache

Should I put /* after node_modules ?


#8

Leave it the way it is. It’s there for a reason, and you don’t need to clutter your git repo with dependencies that your package manager can handle.


#9

I made it work DamnedScholar, I remove from cached with

git rm --cached -r node_modules
git commit -m “removing node_modules from index”