Can someone help me to copy Jar file from local system to Bitbucket? I can able to copy other files but jar not showing on list, but in folder i can see jar file. Is Git not allowed to add jar into bitbucket?
Hi @Sumit Patel and welcome to the community!
It sounds like there might be a gitignore file either in the repo or elsewhere in your system. The gitignore specifies which files should be ignored by Git.
Please see the info on the following page from Git documentation regarding the location of the file and how it is used:
If there is a gitignore and the extension .jar is added to it, this explains why Git cannot see it.
Removing this extension from the gitignore should solve the issue. However, if you do not need to version the .jar files, I would not recommend doing that. Git was designed to work with text files. While you can commit and push binary files as well, this may affect the performance of the repo. If you are using Bitbucket Cloud, you could upload the jar file to the Downloads section of the repo.
In case you do need to version the jar file, I would recommend looking into using Git LFG instead (the documentation is specific to Bitbucket Cloud, which I see you are using):
Please feel free to let me know if you have any questions.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.