git-svn

Git-svn - import full history

时光总嘲笑我的痴心妄想 提交于 2019-12-18 02:45:52
问题 Problem By default git svn clone imports history only from branch creation onwards, despite the fact, that history for files is present in SVN repository prior branch creation. Our SVN branch was created by svn copy , if that matters. My attempts I've tried --no-minimize-url and --follow-parent , but without success. Produced Git repository is same as without these params, starting from branch creation. Desired result Git repository with full history from SVN repository creation. Update My

Convert an SVN checkout to use git (git-svn)

假装没事ソ 提交于 2019-12-18 01:28:33
问题 I work with software that is kept in svn for version control. I would like to use git (git-svn) however the software requires lots of setup and configuration before it can be used. There are tools that take care of all of the setup, including checking out all the code via svn. All the documentation for git-svn (I've been able to find) requires a fresh checkout, using git-svn. Is there a way to convert an existing svn checkout so it can use git-svn? 回答1: You could do something like this: Do a

How to import and keep updated a CVS repository in Git? [closed]

北城余情 提交于 2019-12-17 21:45:46
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . There is a central repository in CVS, and I would like to use it with Git locally, and then send my changes back to CVS. What can I accomplish that on a daily basis? The tasks I would like to accomplish are: importing branches, getting history in GIT-like format, and

extract multiple directories using git-filter-branch

扶醉桌前 提交于 2019-12-17 17:26:16
问题 I have a big repository which currently contains multiple projects in top level subfolders, say /a , /b , /c , and /d . Now I want to split up that repository into two different repositories: one containing /a and /b and the other containing /c and /d . I am aware of git filter-branch --subdirectory-filter , which is perfect for extracting a single directory, but it seems not to be able to extract multiple directories at once. I am also aware of git filter-branch --prune-empty --tree-filter ,

git merge different repositories?

回眸只為那壹抹淺笑 提交于 2019-12-17 17:24:21
问题 I've been using SVN for all my projects. Sometimes project B is originating as a copy from project A. When project A has a generic change, I can use svn merge A within directory B and it will merge those changes. Now, if I wanted to use git. I don't like having all my projects in the same repository since I then have to clone everything and can't pick just one project like in SVN. But having one repository for each project, how do I go about doing the same like I did earlier with SVN? The

Git svn rebase : checksum mismatch

扶醉桌前 提交于 2019-12-17 15:34:43
问题 I have a problem when I try to do a git svn rebase on my repository. It displays : Checksum mismatch: code/app/meta_appli/app_info.py expected: d9cefed5d1a630273aa3742f7f414c83 got: 4eb5f3506698bdcb64347b5237ada19f I searched a lot but haven't found a way to solve this problem. If anybody knows, please share your knowledge. Thanks in advance. 回答1: This solution was the only one that worked for me: See what was the revision number of the last change on the file: git svn log chrome/test

git-svn: reset tracking for master

心不动则不痛 提交于 2019-12-17 15:29:40
问题 I'm using git-svn to work with an SVN repository. My working copies have been created using git svn clone -s http://foo.bar/myproject so that my working copy follows the default directory scheme for SVN (trunk, tags, branches). Recently I've been working on a branch which was created using git-svn branch myremotebranch and checked-out using git checkout --track -b mybranch myremotebranch . I needed to work from multiple locations, so from the branch I git-svn dcommit -ed files to the SVN

Using Git to work with subversion: Ignoring modifications to tracked files

别说谁变了你拦得住时间么 提交于 2019-12-17 07:41:22
问题 I am currently working with a subversion repository but I am using git to work locally on my machine. It makes work much easier, but it also makes some of the bad behavior going on in the subversion repo quite glaring and that creates problems for me. There is a somewhat complex local build process after pulling down the code and it creates (and unfortunately modifies) a number of files. Obviously these changes are not meant to be committed back to the repository. Unfortunately the build

What is a Git commit ID?

妖精的绣舞 提交于 2019-12-17 07:30:45
问题 How are the Git commit IDs generated to uniquely identify the commits? Example: 521747298a3790fde1710f3aa2d03b55020575aa How does it work? Are they only unique for each project? Or for the Git repositories globally? 回答1: A Git commit ID is a SHA-1 hash of every important thing about the commit. I'm not going to list them all, but here's the important ones... The content, all of it, not just the diff. Commit date. Committer's name and email address. Log message. The ID of the previous commit(s

git-svn: what's the equivalent to `svn switch --relocate`?

徘徊边缘 提交于 2019-12-17 07:04:39
问题 An svn repository I'm mirroring through git-svn has changed URL. In vanilla svn you'd just do svn switch --relocate old_url_base new_url_base . How can I do this using git-svn? Simply changing the svn url in the config file fails. 回答1: This handles my situation pretty well: https://git.wiki.kernel.org/index.php/GitSvnSwitch I cloned using the file:// protocol, and wanted to switch to the http:// protocol. It is tempting to edit the url setting in the [svn-remote "svn"] section of .git/config