efi
efi

Reputation: 53

Commit and Push a new package to github

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.

enter image description here

Upvotes: 2

Views: 1200

Answers (1)

rafaelbattesti
rafaelbattesti

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

Related Questions