git-svn

git-svn ignore large binary files

青春壹個敷衍的年華 提交于 2019-12-07 05:04:13
问题 I'm working with a large svn repository (30,000+ revisions). I am using git-svn with limited success. My major problem is that the svn repository contains frequent updates to large binary files (~30MB). I do not care about the history of these files but I do care about the current versions of these files. git svn rebase runs very slowly if there have been multiple updates to the large binary files since my last svn rebase (which is common). My git database also grows very quickly. I'm looking

git-svn isn't committing to branches, only trunk

久未见 提交于 2019-12-07 03:35:44
问题 I'm working with an SVN repository that is laid out like this: $SVN/[project]/trunk $SVN/[project]/branches/[user]/[branch] $SVN/[project]/tags/releases/[tag] My .git/config looks like this: [svn-remote "svn"] url = $SVN fetch = project/trunk:refs/remotes/trunk branches = project/branches/*/*:refs/remotes/* When I look at git branch -a, I see all the remote branches. Let's say I want to check one out, work on it, then commit the changes back. Here's is what I am trying to do: git checkout -b

Switch the svn branch git dcommits to

陌路散爱 提交于 2019-12-07 02:54:12
问题 I had master dcommit to (and rebase from) the Subversion trunk . I created an intermediate Subversion branch tc , to merge changes from 2 different branches, using: git branch master git svn branch tc -m "Branch for merging" git checkout -b tcl --track tc git merge cat #Another branch, whose changes I merged here git commit -m 'Merged changes from cat branch' git svn dcommit Since everything was fine, I wanted to promote this to the trunk . I followed doing: git branch master git merge tcl

How to clone a git repo with all branches and tags from refs/remotes?

北战南征 提交于 2019-12-06 23:47:49
问题 I have a local git repo that I created from an svn repo: $ git svn clone -s svn:... I then created a backup remote and pushed everything to it: $ git remote add backup git@myhost:mybackup.git $ git push --mirror backup Now, when I try to clone from my backup, it is missing all svn tags and branches. $ git clone git@myhost:mybackup.git $ cd mybackup $ git branch -a * master origin remotes/origin/HEAD -> origin/master remotes/origin/master How do I clone the repo with all tags and branches? The

Explanation of Github fork and how they store files

自闭症网瘾萝莉.ら 提交于 2019-12-06 22:51:31
问题 I am just wondering what happens when a fork is done on github. For example, when I fork a project does it make a copy on github server of all of that code, or just create a link to it? So another question: In git since it hashes all the files if you add the same file to it it does not need to store the file contents again because the hash will be already in the system, correct? Is github like this? So if I happen to upload the exact same piece of code as another user, when github gits it

Git - How do I manage built files in different branches?

大憨熊 提交于 2019-12-06 17:53:16
问题 Some Background I have been using Git for a while now. The projects that I have been working on have not been too complicated in regards to branches/tags. I have decided to use git-svn at work. The SVN repository has many different branches. A lot of these branches are customer customized versions of the trunk. The Problem I often work on problems for different customers at different the same time. So I switch back and forth between branches all the time. The problem is that to test the

How to modify git repository to add submodules in ALL the past revisions?

北战南征 提交于 2019-12-06 09:58:24
问题 I migrated my SVN repository successfully with Tags into Git using git svn-clone . However, git svn-clone does not migrate svn:externals . Hence, I decided to modify branch tree using git filter-branch . For svn:externals , first I created a separate Git repository for each svn:externals and then I tried using the following, but it didn't work. $ git filter-branch --tree-filter "git submodule add git@github.com:myAcc/mySubmodule.git mySubmodule" HEAD Rewrite

How to partially export a git repository?

别来无恙 提交于 2019-12-06 08:59:26
问题 My company uses git internally and we publish some of our work as an open source on Google Code which uses svn. (Should it support git, the problem would be probably the same.) The problem is that we publish only part of our repository, so using git-svn as described on http://code.google.com/p/support/wiki/ImportingFromGit will not work. How to publish part of the repository? (For the first time I just copied files we want to publish.) How to synchronize the changes between published files

Missing revisions after “git svn clone”

江枫思渺然 提交于 2019-12-06 08:52:59
After running: git svn clone https://svn.mycompany.eu/project/trunk There are some missing revisions (for exemaple 500 from 4700 of total revisions). It's a problem, because we have joined a number of commits with a number of tasks in Trac. Can anybody help, please? You cloned the trunk only, so git-svn didn't detect any branches. Try: git svn clone -s https://svn.mycompany.eu/project Odds are that's where those missing revisions are. If your project does not adhere to SVN conventions, you will need to tell git svn where to find those branches. 来源: https://stackoverflow.com/questions/10982285

Git blame on reorganized SVN repository

﹥>﹥吖頭↗ 提交于 2019-12-06 08:15:45
git blame isn't showing me the all history of a SVN repository which had its layout reorganized. I'm using git-svn to access a SVN repository. The SVN repository used to have a structure with a vast tree of folders to hold the many projects. Last year I reorganized and flattened the layout into a more standard trunk/tags/branches layout. The result of which is that all the files in the repository were moved on 17th May 2010. Using the subclipse SVN client from Eclipse, I can do Team->Show Annotation and it shows the history of a file as I expect - lines of code changed in 2009 are correctly