repository

How to reduce git repo size on Bitbucket?

匆匆过客 提交于 2019-11-28 04:42:05
Summary of my problem: One of my private repositories on Bitbucket suddenly more than doubled in size after I pushed an addition of a few hundred bytes to two existing files. The repo is now over 2GB, which has caused Bitbucket to put it into read-only mode. Because it is in read-only mode, I cannot push changes that would reduce the repo size. (Catch 22.) Details: My company recently began hosting git repositories on Bitbucket. One of the repositories I am in charge of had a size of about 973MB, which was uncomfortably close to the 1GB soft limit. To reduce the repo size, I followed the

How can I index our internal source code?

痞子三分冷 提交于 2019-11-28 04:33:39
Google Code Search has indexed Subversion and Mercurial repositories, so people can search open source projects. How can I do the same for my company's repository with the least effort and without publishing our code? We have Trac (with Subversion) at our shop, but it only indexes Changesets, and we also have Visual Source Safe. Oli A quick Google turned up VoilaSVN but I cannot vouch for it. Edit: It also turned up OpenGrok which appears to have a lot more support for other systems. Dominic Rodger I can vouch for the usefulness of opengrok , we have it at work and I use it pretty well every

Extract part of a git repository?

孤人 提交于 2019-11-28 04:31:12
Assume my git repository has the following structure: /.git /Project /Project/SubProject-0 /Project/SubProject-1 /Project/SubProject-2 and the repository has quite some commits. Now one of the subprojects (SubProject-0) grows pretty big, and I want to take SubProject-0 out and set it up as a standalone project. Is it possible to extract all the commit history involving SubProject-0 from the parent git repository and move it to a new one? See http://git-scm.com/docs/git-filter-branch I think you need something like git filter-branch --subdirectory-filter Project/SubProject-0 --prune-empty -- -

No property found for type error when try to create custom repository with Spring Data JPA

两盒软妹~` 提交于 2019-11-28 04:20:45
I have a Media entity that has some basic fields for files uploaded by the user. For saving the bytes of the files uploaded, I want to create a custom repository that holds that functionality. Following the steps in the Spring documentation , I've created an interface that looks like this: public interface MediaBytesRepository { public byte[] getBytes(Media media) throws IOException; public void saveBytes(Media media, byte[] bytes) throws IOException; public void appendBytes(Media media, byte[] bytes) throws IOException; public void deleteBytes(Media media) throws IOException; public boolean

What is included in JCenter repository in Gradle?

匆匆过客 提交于 2019-11-28 03:52:26
From Gradle 1.7 there is new Public repository JCenter. repositories { jcenter() } So I want to ask if all jars from Maven Central are parts of this repo? And if not from what is JCenter repo consists of? And is JCenter more reliable from Maven Central as downtime? Rene Groeschke jcenter() is similar to mavenCentral() . Have a look at https://bintray.com/bintray/jcenter for more details. The jCenter guys claim that they have a better performance than Maven Central. As mentioned in https://bintray.com/bintray/jcenter : JCenter is the place to find and share popular Apache Maven packages for use

How do I force Maven to use my local repository rather than going out to remote repos to retrieve artifacts?

大兔子大兔子 提交于 2019-11-28 03:45:44
I’m using Maven 3.3.3 with Java 8 on Mac Yosemite. I have a multi-module project. <modules> <module>first-module</module> <module>my-module</module> … </modules> When I build my one of my child modules, for example, “my-module” from above, using “mvn clean install”, the build attempts to download the child module artifacts from a remote repository I have defined in my ~/.m2/settings.xml file. Output is below [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building my-module 87.0.0-SNAPSHOT [INFO] ----------------------------------------------------

What do the *-dev packages in the Linux package repositories actually contain?

故事扮演 提交于 2019-11-28 03:39:01
My question is very basic, as is my knowledge right now. I'm a long-time Linux user, but have only recently taken a major interest in programming. I see that many popular applications in the Ubuntu repositories have -dev packages (e.g. pidgin-dev in addition to pidgin ). My question is this: What is in these packages? How does downloading pidgin-dev help one to develop for Pidgin? Is it as simple as a dependency check for the tools necessary to create the plugins for the given application? I was hoping there would be a substantial amount of documentation in the -dev packages, but if there is,

Multiple SVN Repositories or single company repository

ぃ、小莉子 提交于 2019-11-28 03:27:19
Should we have one single repository for all the company, which contains many development projects, or a repository per project? Any ideas on experience / best practice? Personally I would definitely prefer separate repository per project. There are several reasons: Revision numbers . Each project repository will have separate revisions sequence. Granularity . With repository per project you just can't make a commit into different projects having the same revision number. I assume this more as advantage, while someone would say that it is a flaw. Repository size . How large is your project?

How does the Android repo manifest repository work?

二次信任 提交于 2019-11-28 03:19:51
The Android source is a large hierarchy of git repositories . They are managed by a custom script called repo . Repo determines which git repositories to manage using a manifest.xml. The manifest.xml of Android is hosted in a git repository along with all the other git repositories. How is this repository managed in Android? Specifically how are the different branches and the different files hosted in each branch organised? First, repo init creates the .repo directory, clones the git repository https://android.googlesource.com/tools/repo to .repo/repo , and the git repository specified with

How to import a Project into bitbucket repository from Android Studio?

萝らか妹 提交于 2019-11-28 03:18:48
So basically I have an Android Studio project on my local computer and I need to add it into my BitBucket repository I created online. I just can't get it right with Android Studio. I can't upload files from Android Studio project to my BitBucket repository. How can I do such a thing? Abdelrahman Aly Here is how I did it without plugins: Create the repository on your Bitbucket account Create your project in Android Studio In Android Studio, Go to VCS Choose 'Enable version control' Choose Git and press OK Right click on your project, choose Git then click Add Open Terminal in Android Studio Go