repository

Accessing files of a repository from the Git server

我的梦境 提交于 2019-12-06 00:03:02
I have to access some files stored in a Git repository, but I don't see where they are stored inside the repository folder. Is there a special way to access the various files pushed from the clients? If this is a bare repo, you wouldn't find those file in the repo.git folder. See " all about "bare" repos ": a bare repo has no working tree, and is used for pushing to it (since there is no working tree to keep in sync with an updated branch) The easiest way to see those file is to clone said bare repo: git clone /path/to/repo.git /path/to/repo I know only a hack-ish way to see the list of files

using a private github repository to host a private maven artifact

此生再无相见时 提交于 2019-12-05 23:30:32
Question title kind of explains it all. I've seen other questions referencing this but I think they are more geared towards the github repository being public. Using this configuration in the dependent project works when the repository is public: <repositories> <repository> <id>company-core-mvn-repo</id> <url>https://raw.github.com/company/company-core/mvn-repo/</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories> <dependencies> <dependency> <groupId>com.company.core</groupId> <artifactId>company-core</artifactId> <version>1.1

git push… fatal: Unable to create master.lock: File exists

喜夏-厌秋 提交于 2019-12-05 23:15:31
Help! When I try to do a git push origin master now, I get: fatal: Unable to create '/home/ubuntu/workspace/.git/refs/remotes/origin/master.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue. Of course, I've found other similar questions (e.g. here ), but the upvoted answers in there merely suggest deleting the offending file... but the file does not exist! I fear that this is happening after I recently tried to clear some space

JpaRepository delete child elements

无人久伴 提交于 2019-12-05 22:43:40
I'm trying to do a very simple delete operation, but somehow it doesn't work since I updated the DAOs to JpaRepository. Basically it's this: A a = aRepository.findOne(id); a.setSomeField("someNewString"); List<B> bList = a.getBs(); bList.clear(); aRepository.saveAndFlush(a); The field get's updated as expected, but the bList stays unchanged. I've even tried: A a = aRepository.findOne(id); a.setSomeField("someNewString"); List<B> bList = a.getBs(); for(B b : bList) { bRepository.delete(b); } bRepository.flush(); bList.clear(); aRepository.saveAndFlush(a); Still the same... Class A looks like

gradle repository points to local directory with multiple libs

人走茶凉 提交于 2019-12-05 18:38:02
I have question regarding the build dependencies in the build.gradle for the local repository (i.e. using the local directory) dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') } Does it solve the dependencies in the libs directory only or it is resolves the dependencies on all the subfolders of lib directory? If it does not resolve the dependencies of subfolders/subdirectories, how to resolve the dependencies? Note: Our project depends on lot of jars files(instead of giving the full file name for each jars/libs), so wants to know any alternate way. It should depend on what

How to add tags/trunk/branches to established SVN repo?

醉酒当歌 提交于 2019-12-05 18:19:15
Lets say you have an established SVN repository with many hundreds of revisions and has been around for upwards of a year. The repository does not have the standard tags, trunk and branches at the top level. Instead it just goes straight into the code. Is there a way to add in tags , trunk and branches to the repository on the top level without just checking out the entire repository, altering the directory structure and then committing? Is there anyway to add it in recursively so that if you wanted to view a file from a year ago that used to be here: svn://svn.server.com/myfolder/myfile.txt

Inspect git repo after using BFG repo-cleaner

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 18:14:40
Very basic git question: I uploaded some compromising information to Github and am using bfg to clean the repo. I followed the documentation and performed the following actions: $ git clone --mirror git://example.com/some-big-repo.git $ bfg --replace-text passwords.txt my-repo.git I received the following output: Found 233 objects to protect Found 9 commit-pointing refs : HEAD, refs/heads/experimental, refs/heads/master, ... Protected commits ----------------- These are your protected commits, and so their contents will NOT be altered: * commit 497fc1c8 (protected by 'HEAD') Cleaning --------

separate local download and install repositories using maven?

纵然是瞬间 提交于 2019-12-05 17:16:50
I want to rebuild my project structure from scratch from time to time and want to purge the built repository in order to do that. However, I don't want to remove downloaded files from maven central and other repositories. Is there a simple way to tell maven to install my built artifacts into a separate repository, ie. other then the one used to store downloaded, external files? I am NOT talking about deploy , just mvn install . UPDATE I found an alternate solution using only one local repository for both downloaded and self-built artifacts: the self-built ones are accompanied by files called

Saving entity in repository does not work SPRING

不问归期 提交于 2019-12-05 16:44:17
问题 I'm trying to save entity in repository but it does not work at all. Repository is Autowired and in runtime I use saveAndFlush to save entity. I'm using PostgreSQL. Above test methods I added comments with explanation what is going on. I expected that method saveAndFlush should work but it did not. I can not find why. @Transactional public class TestClass{ @Autowired private MyRepository repository; @Autowired private EntityManager entityManager; // Working version public void

File Level Tracking In Git (Files from multiple branches in same directory)

巧了我就是萌 提交于 2019-12-05 15:13:51
Is there any script that lets one remember branch/commit seperatly for files in some directory so that one can simultaneously work on file1 on branch1 and file2 on branch2 in the same directory and have them commit appropriately. If not I'll implement it myself. My plan is to have hidden checkout directories for various branches/repos and populating the apparent checkout with links to these files so that commits simply committed their respective hidden branches but advice would be appreciated. Thus one could do something like mgit checkout branch1 filename/filegroup mgit add filename