How to import a new tag from svn into git-svn?
By @Vanuan's answer How to import svn branches and tags into git-svn? a svn repo with branches and tags are fetched into git-svn, but then how to import a new-upstream-created tag into git-svn?
Use Case: Mirroring an active-developed svn repo
- No write permission to the svn repo;
- Sync new tags and branches with the svn repo;
- Create new git-only branches, modify and commit to a git repo;
git svn git-svn
add a comment |
By @Vanuan's answer How to import svn branches and tags into git-svn? a svn repo with branches and tags are fetched into git-svn, but then how to import a new-upstream-created tag into git-svn?
Use Case: Mirroring an active-developed svn repo
- No write permission to the svn repo;
- Sync new tags and branches with the svn repo;
- Create new git-only branches, modify and commit to a git repo;
git svn git-svn
add a comment |
By @Vanuan's answer How to import svn branches and tags into git-svn? a svn repo with branches and tags are fetched into git-svn, but then how to import a new-upstream-created tag into git-svn?
Use Case: Mirroring an active-developed svn repo
- No write permission to the svn repo;
- Sync new tags and branches with the svn repo;
- Create new git-only branches, modify and commit to a git repo;
git svn git-svn
By @Vanuan's answer How to import svn branches and tags into git-svn? a svn repo with branches and tags are fetched into git-svn, but then how to import a new-upstream-created tag into git-svn?
Use Case: Mirroring an active-developed svn repo
- No write permission to the svn repo;
- Sync new tags and branches with the svn repo;
- Create new git-only branches, modify and commit to a git repo;
git svn git-svn
git svn git-svn
edited Nov 29 '18 at 9:53
Morris
asked Oct 31 '18 at 10:09
MorrisMorris
177311
177311
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
git-svn assumes that you are using the git-svn repo to mirror an svn repo. While it is a functioning git repo, any new branches and tags should be created using the git-svn tool. If tags and branches are added as regular 'git' branches and tags, then you'll need to transfer the code across yourself.
I'd suggest you try using git stash
to save your local git-only branch changes, run git svn fetch
to get the latest changes including any new tags, apply your git stash into a newly created git-svn branch and then use git-svn dcommit
to commit them to your svn repo.
Thanks @Paul, but it will delete all my non-svn branches.
– Morris
Nov 20 '18 at 12:48
Hi @Morris, I've added extra details above which hopefully answers your question?
– Paul Phillips
Nov 23 '18 at 6:59
Hi @Paul, I runjava -Dfile.encoding=utf-8 -jar svn-migration-scripts.jar clean-git --no-delete
, but it still says "Deleting Git branch 'b-trunc' not in Subversion." in dry-run mode.
– Morris
Nov 23 '18 at 9:35
@Morris see new edits - it appears that the migration script I referenced doesn't support what you want to do.
– Paul Phillips
Nov 26 '18 at 5:21
git svn fetch
does not fetch new tags in my case.
– Morris
Nov 29 '18 at 9:55
|
show 1 more comment
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53080889%2fhow-to-import-a-new-tag-from-svn-into-git-svn%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
git-svn assumes that you are using the git-svn repo to mirror an svn repo. While it is a functioning git repo, any new branches and tags should be created using the git-svn tool. If tags and branches are added as regular 'git' branches and tags, then you'll need to transfer the code across yourself.
I'd suggest you try using git stash
to save your local git-only branch changes, run git svn fetch
to get the latest changes including any new tags, apply your git stash into a newly created git-svn branch and then use git-svn dcommit
to commit them to your svn repo.
Thanks @Paul, but it will delete all my non-svn branches.
– Morris
Nov 20 '18 at 12:48
Hi @Morris, I've added extra details above which hopefully answers your question?
– Paul Phillips
Nov 23 '18 at 6:59
Hi @Paul, I runjava -Dfile.encoding=utf-8 -jar svn-migration-scripts.jar clean-git --no-delete
, but it still says "Deleting Git branch 'b-trunc' not in Subversion." in dry-run mode.
– Morris
Nov 23 '18 at 9:35
@Morris see new edits - it appears that the migration script I referenced doesn't support what you want to do.
– Paul Phillips
Nov 26 '18 at 5:21
git svn fetch
does not fetch new tags in my case.
– Morris
Nov 29 '18 at 9:55
|
show 1 more comment
git-svn assumes that you are using the git-svn repo to mirror an svn repo. While it is a functioning git repo, any new branches and tags should be created using the git-svn tool. If tags and branches are added as regular 'git' branches and tags, then you'll need to transfer the code across yourself.
I'd suggest you try using git stash
to save your local git-only branch changes, run git svn fetch
to get the latest changes including any new tags, apply your git stash into a newly created git-svn branch and then use git-svn dcommit
to commit them to your svn repo.
Thanks @Paul, but it will delete all my non-svn branches.
– Morris
Nov 20 '18 at 12:48
Hi @Morris, I've added extra details above which hopefully answers your question?
– Paul Phillips
Nov 23 '18 at 6:59
Hi @Paul, I runjava -Dfile.encoding=utf-8 -jar svn-migration-scripts.jar clean-git --no-delete
, but it still says "Deleting Git branch 'b-trunc' not in Subversion." in dry-run mode.
– Morris
Nov 23 '18 at 9:35
@Morris see new edits - it appears that the migration script I referenced doesn't support what you want to do.
– Paul Phillips
Nov 26 '18 at 5:21
git svn fetch
does not fetch new tags in my case.
– Morris
Nov 29 '18 at 9:55
|
show 1 more comment
git-svn assumes that you are using the git-svn repo to mirror an svn repo. While it is a functioning git repo, any new branches and tags should be created using the git-svn tool. If tags and branches are added as regular 'git' branches and tags, then you'll need to transfer the code across yourself.
I'd suggest you try using git stash
to save your local git-only branch changes, run git svn fetch
to get the latest changes including any new tags, apply your git stash into a newly created git-svn branch and then use git-svn dcommit
to commit them to your svn repo.
git-svn assumes that you are using the git-svn repo to mirror an svn repo. While it is a functioning git repo, any new branches and tags should be created using the git-svn tool. If tags and branches are added as regular 'git' branches and tags, then you'll need to transfer the code across yourself.
I'd suggest you try using git stash
to save your local git-only branch changes, run git svn fetch
to get the latest changes including any new tags, apply your git stash into a newly created git-svn branch and then use git-svn dcommit
to commit them to your svn repo.
edited Nov 26 '18 at 5:19
answered Nov 20 '18 at 9:58
Paul PhillipsPaul Phillips
516
516
Thanks @Paul, but it will delete all my non-svn branches.
– Morris
Nov 20 '18 at 12:48
Hi @Morris, I've added extra details above which hopefully answers your question?
– Paul Phillips
Nov 23 '18 at 6:59
Hi @Paul, I runjava -Dfile.encoding=utf-8 -jar svn-migration-scripts.jar clean-git --no-delete
, but it still says "Deleting Git branch 'b-trunc' not in Subversion." in dry-run mode.
– Morris
Nov 23 '18 at 9:35
@Morris see new edits - it appears that the migration script I referenced doesn't support what you want to do.
– Paul Phillips
Nov 26 '18 at 5:21
git svn fetch
does not fetch new tags in my case.
– Morris
Nov 29 '18 at 9:55
|
show 1 more comment
Thanks @Paul, but it will delete all my non-svn branches.
– Morris
Nov 20 '18 at 12:48
Hi @Morris, I've added extra details above which hopefully answers your question?
– Paul Phillips
Nov 23 '18 at 6:59
Hi @Paul, I runjava -Dfile.encoding=utf-8 -jar svn-migration-scripts.jar clean-git --no-delete
, but it still says "Deleting Git branch 'b-trunc' not in Subversion." in dry-run mode.
– Morris
Nov 23 '18 at 9:35
@Morris see new edits - it appears that the migration script I referenced doesn't support what you want to do.
– Paul Phillips
Nov 26 '18 at 5:21
git svn fetch
does not fetch new tags in my case.
– Morris
Nov 29 '18 at 9:55
Thanks @Paul, but it will delete all my non-svn branches.
– Morris
Nov 20 '18 at 12:48
Thanks @Paul, but it will delete all my non-svn branches.
– Morris
Nov 20 '18 at 12:48
Hi @Morris, I've added extra details above which hopefully answers your question?
– Paul Phillips
Nov 23 '18 at 6:59
Hi @Morris, I've added extra details above which hopefully answers your question?
– Paul Phillips
Nov 23 '18 at 6:59
Hi @Paul, I run
java -Dfile.encoding=utf-8 -jar svn-migration-scripts.jar clean-git --no-delete
, but it still says "Deleting Git branch 'b-trunc' not in Subversion." in dry-run mode.– Morris
Nov 23 '18 at 9:35
Hi @Paul, I run
java -Dfile.encoding=utf-8 -jar svn-migration-scripts.jar clean-git --no-delete
, but it still says "Deleting Git branch 'b-trunc' not in Subversion." in dry-run mode.– Morris
Nov 23 '18 at 9:35
@Morris see new edits - it appears that the migration script I referenced doesn't support what you want to do.
– Paul Phillips
Nov 26 '18 at 5:21
@Morris see new edits - it appears that the migration script I referenced doesn't support what you want to do.
– Paul Phillips
Nov 26 '18 at 5:21
git svn fetch
does not fetch new tags in my case.– Morris
Nov 29 '18 at 9:55
git svn fetch
does not fetch new tags in my case.– Morris
Nov 29 '18 at 9:55
|
show 1 more comment
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53080889%2fhow-to-import-a-new-tag-from-svn-into-git-svn%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown