subgit

GIT SVN with subgit and apache

萝らか妹 提交于 2019-12-10 10:35:48
问题 I've started evaluating a piece of software called subgit which seamlessly allows you to interface a repo with either SVN or GIT. Throughout our organization we interface our repos using apache, and trying to combine this with GIT becomes somewhat troublesome. Overall we want to permit read-access without authentication, and write should be authenticated, this works fine with SVN but doesn't seem to be as straight-forward with GIT. In addition to this it would be neat to have apache identify

Converting Git repository into SVN with SubGit

怎甘沉沦 提交于 2019-12-10 03:59:57
问题 I am using SubGit to synchronize Git and SVN repos. When cloning a remote Git repo I want to preserve all the history of that repo. The steps I currently follow allow me to copy the history of the master branch only: svnadmin create svn_repos subgit-1.0.0-EAP_1381/bin/subgit configure svn_repos subgit-1.0.0-EAP_1381/bin/subgit install svn_repos git clone svn_repos gitRepo cd gitRepo/ git remote add -f newRemote git://127.0.0.1/gitRepo ... From git://127.0.0.1/gitRepo * [new branch]

Using subgit with repositories having .git directory

安稳与你 提交于 2019-12-08 11:17:08
问题 I'm confused how to use subgit if I want my Git repository to have a .git subdirectory. If I use the conventional subgit configure + ( subgit import or subgit install ), it doesn't create a .git directory. If I do git init first, then I can do subgit import but it won't seem to let me do subgit configure first, and I want to setup my configuration file so I don't have to put a bunch of stuff in the command-line for subgit import . Is there a way to tell subgit to use the conventional .git

GIT SVN with subgit and apache

社会主义新天地 提交于 2019-12-06 11:27:18
I've started evaluating a piece of software called subgit which seamlessly allows you to interface a repo with either SVN or GIT. Throughout our organization we interface our repos using apache, and trying to combine this with GIT becomes somewhat troublesome. Overall we want to permit read-access without authentication, and write should be authenticated, this works fine with SVN but doesn't seem to be as straight-forward with GIT. In addition to this it would be neat to have apache identify whether it's a GIT/SVN request and figure out where to point the client so that you can use the same

How to find SVN revision in subgit repo?

不想你离开。 提交于 2019-12-04 11:41:40
问题 I'm using Subgit to access a Subversion repo. It works great, but at times, especially when communicating with users who access the repo using an ordinary Subversion client, I'd really like to find to which SVN revision a particular changeset corresponds. Can I, using git find the SVN revision number somewhere in my local repo? 回答1: Yes, you can do that easily. You should just modify your .git/config file in the cloned Git repository to add [remote "origin"] ... fetch = +refs/svn/map:refs

How to set up subgit to mirror an svn repo that looks like a Windows Explorer hierarchy?

天大地大妈咪最大 提交于 2019-12-04 09:43:04
问题 Being windows users, we created one svn repo with a hierarchy of folders. The bottom nodes contain the svn standard layout: ProjectA/ ApplicationOne/ ModuleX/ trunk/ branches/ tags/ ApplicationTwo/ ModuleY/ trunk/ branches/ tags/ ... and so on ad infinitum. The repo now contains around 100+ real svn projects with the trunk/branches/tags structure, but almost none of them at the top level. How would I configure subgit to handle this? 回答1: SubGit can work in two different modes: local mirror

SubGit: How to exclude branches?

蹲街弑〆低调 提交于 2019-12-04 06:38:14
I'm testing SubGit as a way of migrating from SVN to Git. What I would like to do is be able to create remote branches in the git repository that all users can use that does not sync back to SVN. I only want SubGit to track the master branch and sync it back to SVN so that we have the freedom to use and share other Git branches. Is there a simple way to do this? Thank you The ideal solution would be specifying trunk:refs/heads/master mapping in SubGit configuration , so SubGit would synchronize trunk with master ignoring any other branches. Unfortunately, SubGit needs at least one branches

Subgit: avoid to synchronize git branches onto svn

て烟熏妆下的殇ゞ 提交于 2019-12-03 21:29:18
I am trying to use SubGit but I am facing a problem with branches: I would like branches created under Git to live and die inside Git only. I found this: SubGit: How to exclude branches? , but it says The troubles come from merge commits: if commit A is the result of merging branch foo into master, then SubGit creates branches/foo on Subversion side for corresponding parent of commit A. . If you'd prefer to not include SubGit generated branches into branches/* namespace, consider using some special branches on Subversion side as well I don't want to mess with the SVN because I am evaluating

How to find SVN revision in subgit repo?

拈花ヽ惹草 提交于 2019-12-03 07:28:29
I'm using Subgit to access a Subversion repo. It works great, but at times, especially when communicating with users who access the repo using an ordinary Subversion client, I'd really like to find to which SVN revision a particular changeset corresponds. Can I, using git find the SVN revision number somewhere in my local repo? Yes, you can do that easily. You should just modify your .git/config file in the cloned Git repository to add [remote "origin"] ... fetch = +refs/svn/map:refs/notes/commits option and then run git fetch , as it is described in "Recommended client-side Git configuration"

Does subgit support multiple 'branches' directories?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 07:34:28
Does subgit support multiple 'branches' directories? For example, if one had an SVN repo that went like: trunk/... branches/<branch>/... releases/<release>/... tags/<tag>/... but "releases" was really just release branches. We would want both "branches/" and "releases/" in SVN to become branches in Git. And if a new branch was created in Git, then in SVN we would want a new directory in "branches/" (i.e. "releases/" is deprecated). So what we want is multiple branch mappings, but with with one of them being the "primary" one. Yes, since version 2.0 you can specify 'branches' option in SubGit