git-svn

How do I revert a git-svn branch to SVN HEAD?

不羁岁月 提交于 2019-12-21 05:06:21
问题 I have a local git repository which tracks a remote SVN repository via git svn . I have made and committed some changes in the local git repository, but now I'd like to create a branch that reflects SVN HEAD in order to make some changes to the code as it stands in SVN, because I don't want to propagate the changes in my git master to SVN just yet. How can I go about this? Immediate follow-up: I will need to make and commit changes to SVN HEAD, then merge them back into my git master. How do

Start tracking branches/tags on a git-svn repo that was tracking only trunk

陌路散爱 提交于 2019-12-21 04:18:27
问题 I've started tracking an svn repository with git by cloning only its trunk directory. Now I want to track the other stuff, but I don't want to have to clone it again just to use --stdlayout since it takes a long time to download and I already have most of the code locally. How do I change the repository layout to match svn trunk/branches/tags scheme without having to clone again? 回答1: Old .git/config : [svn-remote "svn"] url = svn://host/project/ trunk fetch = :refs/remotes/ git-svn New .git

Git tag for a subfolder of a repository

笑着哭i 提交于 2019-12-21 04:02:10
问题 I use Git to import a SVN repository. Then I created my own project as a subfolder in the repository. I use the SVN repository with Git-SVN. My working procedure is: git commit -am "message" git svn rebase git svn dcommit . Now I want to tag my project with git tag -a RC1 -m 'Release Candidate 1' , but I only want that my project gets the tag. How can I do that? 回答1: TL;DR version It's possible to tag specific directories (aka trees) if you know the tree's SHA-1, but it's not often done & not

git svn status - showing changes that are not committed to svn

人走茶凉 提交于 2019-12-20 10:37:53
问题 I'm looking for a command in git-svn that will show me the changes I have committed to my git repository but that aren't yet committed to the central svn repository. I'm looking for something that works like svn status, but I'm using git-svn, and unfortunately, git svn status is not a valid command. I tried git status but it does not solve this problem, as it shows changes that haven't been committed to my local git repo. I also tried git svn dcommit --dry-run , but it doesn't tell me which

How to set Subversion properties with git-svn

无人久伴 提交于 2019-12-20 10:21:55
问题 Is there a way to set subversion properties on a git repository that was created by git-svn? In my case, I want to edit the version of svn:external , svn:ignore and svn:executable . However, the only way to do so seems to involve a check-out with the subversion client. Is there a way to edit svn properties without having to check out the repository twice (one time for git and one time with svn for the properties)? 回答1: git-svn does not support Subversion properties. When I run into this

How do Git SVN ignore-paths work (ignoring daily build tags)?

↘锁芯ラ 提交于 2019-12-20 09:56:47
问题 I am trying clone an svn repository using git svn. The repository has daily builds tagged which I want to ignore. I am trying to use the "ignore-paths" option to do that, but I am still getting the daily build tags as branches in my repository. A very recent and similar (but so far unanswered) question is here: How to git svn fetch only branches/tags with certain patterns? Repository Layout - https://test.kuali.org/svn/rice General Repository Structure branches Branch 1 Ignore Directory 1

GitHub: Clone succeeded, but checkout failed

左心房为你撑大大i 提交于 2019-12-20 09:47:07
问题 I am having some problems working with git clone .The files are downloaded in my local git folder. Running the command git checkout -f HEAD gives me- Error: 'The unable to write new index file error caused by the lack of disk space'. I've manually removed big files from my computer, but still getting the same error. Cloning into 'ffmpeg'... remote: Counting objects: 7890, done. remote: Compressing objects: 100% (4412/4412), done. Receiving objects: 100% (7890/7890), 299.75 MiB | 24.19 MiB/s,

git-svn “Couldn't find revmap”- what does it mean?

心已入冬 提交于 2019-12-20 09:27:51
问题 When running git svn clone and often during subsequent git svn fetch operations I get this message for a number of folders: Couldn't find revmap for <SVN folder URL> My repository seems to work fine. What does this message mean? Should I be concerned about it? 回答1: I don't have the complete answer, but this error is generated by git-svn.perl. (The relevant code path seems to be do_fetch -> make_log_entry -> find_extra_svn_parents -> lookup_svn_merge.) That code appears to be trying to look at

How to remove subversion remote in git?

主宰稳场 提交于 2019-12-20 09:26:21
问题 I have a git repository that was originally created using git-svn. Now I have a git server that I push to and the svn repository has been lost. Can I remove the svn remote? How? 回答1: You can edit the .git/config file and remove the section associated with the remote you want to remove. The lines you want to remove probably look roughly like this: [svn-remote "svn"] url = url-of-svn-repository/trunk fetch = :refs/remotes/git-svn This will remove the remote from Git, but you will still have the

git svn gatekeeper repository

泪湿孤枕 提交于 2019-12-20 09:20:30
问题 I have beem using git for quite some time now, mainly git-svn. Now I want to convince my colleagues to switch from svn to git. But unfortunaly the precondition is that the svn repository keeps on living quite some time. So I searched for an solution and came up with the book: Jon Loeliger's "Version Control with Git". I bought it and it is really good but I don't fully understand the guide to set up a git svn gatekeeper repo. In Chapter 16, he describes a situation in which there is a