How to import a new tag from svn into git-svn?












0















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




  1. No write permission to the svn repo;

  2. Sync new tags and branches with the svn repo;

  3. Create new git-only branches, modify and commit to a git repo;










share|improve this question





























    0















    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




    1. No write permission to the svn repo;

    2. Sync new tags and branches with the svn repo;

    3. Create new git-only branches, modify and commit to a git repo;










    share|improve this question



























      0












      0








      0








      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




      1. No write permission to the svn repo;

      2. Sync new tags and branches with the svn repo;

      3. Create new git-only branches, modify and commit to a git repo;










      share|improve this question
















      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




      1. No write permission to the svn repo;

      2. Sync new tags and branches with the svn repo;

      3. Create new git-only branches, modify and commit to a git repo;







      git svn git-svn






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 29 '18 at 9:53







      Morris

















      asked Oct 31 '18 at 10:09









      MorrisMorris

      177311




      177311
























          1 Answer
          1






          active

          oldest

          votes


















          0














          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.






          share|improve this answer


























          • 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 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











          • git svn fetch does not fetch new tags in my case.

            – Morris
            Nov 29 '18 at 9:55













          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          0














          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.






          share|improve this answer


























          • 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 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











          • git svn fetch does not fetch new tags in my case.

            – Morris
            Nov 29 '18 at 9:55


















          0














          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.






          share|improve this answer


























          • 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 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











          • git svn fetch does not fetch new tags in my case.

            – Morris
            Nov 29 '18 at 9:55
















          0












          0








          0







          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.






          share|improve this answer















          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.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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 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











          • 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











          • 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











          • @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






















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          To store a contact into the json file from server.js file using a class in NodeJS

          Redirect URL with Chrome Remote Debugging Android Devices

          Dieringhausen