Reputation: 53
Usually when i'm adding a new file to the repository i just right click on the file name and click commit & push.
But when i'm adding a new package, for some reason its not working.
I tried to "add to index" the package and the file , but still nothing changed.
As you can see, the _dfs
package is faded.
Upvotes: 2
Views: 1200
Reputation: 552
What I usually do is add all patterns I don't want to track into .gitignore
and then run:
git add --all
This will add all the files in your project root BUT the ones which pattern match the patterns in .gitignore
In case you need to untrack files without removing them from your file system (in case you miss any pattern in your .gitignore) you can use:
For files
git rm --cached foldername/filename
For folders
git rm --cached -r foldername
commit and push
git commit -am "Your commit message"
git push <remote_name> <branch_name>
Hope this helps!
Upvotes: 1