Add .jar files into a git repository

git, github, java

Solution

You put your files in the project package, but you didn't put them under version control. All you need is to add them to VCS by "git add" command. Here is good documentation.

You should use this command in git bash or in terminal (if you have added git to path)

Also I recommend you to use build manager as Maven, Gradle or Ant to add you dependencies. Good luck!

Problem

I have a project on eclipse where recently i created a new folder called lib and added some .jar files inside. I cannot seem to commit the changes to git. It just doesnt appear in the tracked list of files.. I have removed .jar from .gitignore in my branch and commited the changes, and still the same.

Original source