git-svn

git-svn: how to change the svn username on dcommit?

烈酒焚心 提交于 2019-12-22 07:07:44
问题 I cloned a SVN repository into a git repository using git svn clone . At that point in time, I did not have a username at that site and hence didn't use the --username option of clone . As I can now commit to the SVN repository with my new username, I would like to add that username. Without it, dcommit simply fails: % LANG=C git svn dcommit Committing to <THE URL> ... RA layer request failed: Server sent unexpected return value (405 Method Not Allowed) in response to MKACTIVITY request for '

Could I use interactive proxy authentication with git-svn?

非 Y 不嫁゛ 提交于 2019-12-22 06:34:28
问题 I'm behind an authenticating proxy and need to access a remote SVN repo over https using git svn . The proxy is defined in my ~/.subversion/servers file. When I start with git svn fetch , I get an error message: RA layer request failed: OPTIONS of 'http://url/to/repos/branches/experimental' Ok. No problem. Let's write down the credentials to ~/.subversion/servers → everything works fine. However, I'm a little bit uncomfortable having my domain credentials stored in a plain text file on my

Can I use git-svn and look like I was using SVN, if yes how?

試著忘記壹切 提交于 2019-12-22 05:47:14
问题 I'm used to git and I like it very much, but one of my client is (still?) using subversion, I don't really now about svn, but I know there a git-svn package. I know it's possible to fetch a repo from svn with git, but can i use git instead of svn and still commit, and "push" to the central svn server? I want to use git and not svn if I can can you point me any tutorial to do so? Thank you EDIT: I actually don't care to fetch ALL the commits, only the 10/20 previous one would be enough as the

Is there a way to “persistently” synchronize a git repository with SVN?

独自空忆成欢 提交于 2019-12-22 05:18:22
问题 From what I could find around the web, it seems that using git svn is not "persisted". Meaning, if I git svn clone a repository, then push to master and repull a fresh copy in a separate folder, the fresh copy is not aware of svn at all, and cannot be used to synchronize with SVN without reapplication of svn clone . Is there a way around this issue? 回答1: A clone essentially just initializes a new git repository, sets up the origin remote, runs git fetch , and creates a branch based on the

What are the advantages of git over git-svn?

你。 提交于 2019-12-22 05:04:58
问题 The advantages of using git-svn over git are obvious(svn compatibility), but what are the advantages of git over git-svn? 回答1: It simply means you have one less VCS to manage in your development chain (svn). In term of administration: you are left with distributed repositories managed by Git, each one autonomous with their complete history you do not have to maintain a connection to a central SVN repo. you can organize your backups differently (pushing your data to a remote backup bare repo,

Multiple svn projects into one git repository?

做~自己de王妃 提交于 2019-12-22 04:50:54
问题 I have started to use git-svn for some of my work to be able to do local commits. This works great for projects that use standard svn layout. Recently I started working on a Java project that is split into multiple connected modules (20-25), and each module have its own root folder in the same svn repo with its own trunk/branches/tags. svnrepo/ module-1 trunk branches tags module-N trunk branches tags I have cloned each and every module with git svn clone -s /path/to/svnrepo/module[1-N]. The

How can you indicate files to ignore in svn when using git and the git-svn bridge?

浪子不回头ぞ 提交于 2019-12-22 03:47:07
问题 There is a master subversion repository that I've cloned a git repo from. I've got a lot of ignored files in my .gitignore that I'd like the svn repository to know about. I know that I can use git svn show-ignore to pull the ignored list from subversion, but how can I do the reverse? Send a list of files to be ignored back to the svn repo? Git version (and git-svn is at the same version): git --version git version 1.7.0.5 回答1: Ok, so one (annoying) method that I've found is to: (convenience

How to change committed User name in bitbucket?

雨燕双飞 提交于 2019-12-21 20:50:19
问题 How to change commit username in bitbucket account ? To change in git I have used this command git filter-branch -f --env-filter " GIT_AUTHOR_NAME='newUser' GIT_AUTHOR_EMAIL='newuser@email.com' " HEAD It only change username in local machine but not in my bitbucket account. How to change committed username in bitbucket ? 回答1: Like (almost) everything else with Git, this command only modifies your local repository. Just like when you commit or add a tag, you will have to push to BitBucket in

How to git svn fetch only branches/tags with certain patterns?

穿精又带淫゛_ 提交于 2019-12-21 20:22:03
问题 I want to check out Boost library using git-svn, and I only want to checkout trunk and tags starting from version 1.35, i.e. tags/release/Boost_1_35 and up. My config looks like this: [svn-remote "svn"] ignore-paths = ^tags/release/(?i:(?!boost)|[^/]*(?:beta|rc)|boost_(?:0|1_[1-2]|1_3[0-4]))[^/]*/ url = https://svn.boost.org/svn/boost fetch = trunk:refs/remotes/svn/trunk tags = tags/release/*:refs/remotes/svn/tags/* However, git fetch still fetches tons of unrelated tags such as svn/tags

Can't commit a delete using git-svn: Your file or directory is probably out of date

試著忘記壹切 提交于 2019-12-21 19:42:22
问题 I've been looking over this post, but still can't figure out how to solve my particular issue. I'm using git-svn locally against a svn repository. I usually do the following: git svn rebase (to get the latest from the repo). git checkout local-dev git merge master (to merge this into my local branch) make changes, committing locally as I go git checkout master git merge local-dev git svn dcommit (to sent it all back upstream) Usually works fine, until I tried to commit my latest batch from