Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to push jar from local system to Bitbucket?

Sumit Patel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2023

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?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 4, 2023

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events