Push tags with git subtree pushHow to push tags with git subtree?How do I discard unstaged changes in Git?How to remove local (untracked) files from the current Git working treeWhat is the difference between 'git pull' and 'git fetch'?How do I undo 'git add' before commit?How do I undo the most recent local commits in Git?How do I check out a remote Git branch?How do I delete a Git branch locally and remotely?Undo a Git merge that hasn't been pushed yetHow do I revert a Git repository to a previous commit?How do I rename a local Git branch?

Does Bank Manager's discretion still exist in Mortgage Lending

How important is knowledge of trig identities for use in Calculus

Re-entering the UK after overstaying in 2008

How dangerous is a very out-of-true disc brake wheel?

Can I cast Death Ward on additional creatures without causing previous castings to end?

Is there a pattern for handling conflicting function parameters?

Would a horse be sufficient buffer to prevent injury when falling from a great height?

What is the meaning of first flight and introduction in aircraft production?

Why does `FindFit` fail so badly in this simple case?

How to find places to store/land a private airplane?

Missing quartile in boxplot

How dangerous are my worn rims?

Avoiding dust scattering when you drill

Confusion regarding control system of Mars Rover?

Why such a singular place for bird watching?

What is the difference between increasing volume and increasing gain?

Can anyone give me the reason why music is taught this way?

How can Germany increase investments in Russia while EU economic sanctions against Russia are still in place?

A word that refers to saying something in an attempt to anger or embarrass someone into doing something that they don’t want to do?

Duck, duck, gone!

What's the global, general word that stands for "center tone of a song"?

Isn't the detector always measuring, and thus always collapsing the state?

Are there types of animals that can't make the trip to space? (physiologically)

Can the President of the US limit First Amendment rights?



Push tags with git subtree push


How to push tags with git subtree?How do I discard unstaged changes in Git?How to remove local (untracked) files from the current Git working treeWhat is the difference between 'git pull' and 'git fetch'?How do I undo 'git add' before commit?How do I undo the most recent local commits in Git?How do I check out a remote Git branch?How do I delete a Git branch locally and remotely?Undo a Git merge that hasn't been pushed yetHow do I revert a Git repository to a previous commit?How do I rename a local Git branch?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0















I have main repo with many sub-repos. If I do some edits to sub-repos, I can push them to sub-repos using the git subtree push --prefix=path/to/code Repo master --squash. Recently, I've added new tag to main repo git tag 1.0 -> git push --tags. Unfortunately, sub-repos don't include this tag. How can I push this tag to sub-repos? I found the following answer, but it doesn't solve my problem, because I can't merge sub-repos to main repo.










share|improve this question






























    0















    I have main repo with many sub-repos. If I do some edits to sub-repos, I can push them to sub-repos using the git subtree push --prefix=path/to/code Repo master --squash. Recently, I've added new tag to main repo git tag 1.0 -> git push --tags. Unfortunately, sub-repos don't include this tag. How can I push this tag to sub-repos? I found the following answer, but it doesn't solve my problem, because I can't merge sub-repos to main repo.










    share|improve this question


























      0












      0








      0








      I have main repo with many sub-repos. If I do some edits to sub-repos, I can push them to sub-repos using the git subtree push --prefix=path/to/code Repo master --squash. Recently, I've added new tag to main repo git tag 1.0 -> git push --tags. Unfortunately, sub-repos don't include this tag. How can I push this tag to sub-repos? I found the following answer, but it doesn't solve my problem, because I can't merge sub-repos to main repo.










      share|improve this question














      I have main repo with many sub-repos. If I do some edits to sub-repos, I can push them to sub-repos using the git subtree push --prefix=path/to/code Repo master --squash. Recently, I've added new tag to main repo git tag 1.0 -> git push --tags. Unfortunately, sub-repos don't include this tag. How can I push this tag to sub-repos? I found the following answer, but it doesn't solve my problem, because I can't merge sub-repos to main repo.







      git subtree






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 20:39









      Jiri MihalJiri Mihal

      588 bronze badges




      588 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0
















          Tags are just pointers to commits. If the commit doesn't exist in your sub-repo (which I'm quite sure it doesn't, and shouldn't), then you can't have the tag in your repo either (it wouldn't be pointing to anything meaningful).



          The whole point of a sub repository is that you want to treat it as its own repo without reference to the "parent". So if you want a 1.0 tag in your sub-repo, you'll have to create a new tag in your sub-repo named 1.0, point it to an appropriate commit that exists in your sub-repo, and then push it to the sub-repo's origin.






          share|improve this answer

























          • Thank you for your advice. Could you give me a hint how to add and push tags in sub-repos?

            – Jiri Mihal
            Mar 29 at 0:20











          • I can push tags to sub-repo, but to do so, I have to split sub-repo from main repo to separate folder. In this folder I can use git tag 1.0 -> git push --tags to add and push tags to sub-repo. Is there some simpler way?

            – Jiri Mihal
            Mar 29 at 11:33












          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/4.0/"u003ecc by-sa 4.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%2f55406487%2fpush-tags-with-git-subtree-push%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
















          Tags are just pointers to commits. If the commit doesn't exist in your sub-repo (which I'm quite sure it doesn't, and shouldn't), then you can't have the tag in your repo either (it wouldn't be pointing to anything meaningful).



          The whole point of a sub repository is that you want to treat it as its own repo without reference to the "parent". So if you want a 1.0 tag in your sub-repo, you'll have to create a new tag in your sub-repo named 1.0, point it to an appropriate commit that exists in your sub-repo, and then push it to the sub-repo's origin.






          share|improve this answer

























          • Thank you for your advice. Could you give me a hint how to add and push tags in sub-repos?

            – Jiri Mihal
            Mar 29 at 0:20











          • I can push tags to sub-repo, but to do so, I have to split sub-repo from main repo to separate folder. In this folder I can use git tag 1.0 -> git push --tags to add and push tags to sub-repo. Is there some simpler way?

            – Jiri Mihal
            Mar 29 at 11:33















          0
















          Tags are just pointers to commits. If the commit doesn't exist in your sub-repo (which I'm quite sure it doesn't, and shouldn't), then you can't have the tag in your repo either (it wouldn't be pointing to anything meaningful).



          The whole point of a sub repository is that you want to treat it as its own repo without reference to the "parent". So if you want a 1.0 tag in your sub-repo, you'll have to create a new tag in your sub-repo named 1.0, point it to an appropriate commit that exists in your sub-repo, and then push it to the sub-repo's origin.






          share|improve this answer

























          • Thank you for your advice. Could you give me a hint how to add and push tags in sub-repos?

            – Jiri Mihal
            Mar 29 at 0:20











          • I can push tags to sub-repo, but to do so, I have to split sub-repo from main repo to separate folder. In this folder I can use git tag 1.0 -> git push --tags to add and push tags to sub-repo. Is there some simpler way?

            – Jiri Mihal
            Mar 29 at 11:33













          0














          0










          0









          Tags are just pointers to commits. If the commit doesn't exist in your sub-repo (which I'm quite sure it doesn't, and shouldn't), then you can't have the tag in your repo either (it wouldn't be pointing to anything meaningful).



          The whole point of a sub repository is that you want to treat it as its own repo without reference to the "parent". So if you want a 1.0 tag in your sub-repo, you'll have to create a new tag in your sub-repo named 1.0, point it to an appropriate commit that exists in your sub-repo, and then push it to the sub-repo's origin.






          share|improve this answer













          Tags are just pointers to commits. If the commit doesn't exist in your sub-repo (which I'm quite sure it doesn't, and shouldn't), then you can't have the tag in your repo either (it wouldn't be pointing to anything meaningful).



          The whole point of a sub repository is that you want to treat it as its own repo without reference to the "parent". So if you want a 1.0 tag in your sub-repo, you'll have to create a new tag in your sub-repo named 1.0, point it to an appropriate commit that exists in your sub-repo, and then push it to the sub-repo's origin.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 28 at 23:18









          JDBJDB

          17.8k4 gold badges55 silver badges99 bronze badges




          17.8k4 gold badges55 silver badges99 bronze badges















          • Thank you for your advice. Could you give me a hint how to add and push tags in sub-repos?

            – Jiri Mihal
            Mar 29 at 0:20











          • I can push tags to sub-repo, but to do so, I have to split sub-repo from main repo to separate folder. In this folder I can use git tag 1.0 -> git push --tags to add and push tags to sub-repo. Is there some simpler way?

            – Jiri Mihal
            Mar 29 at 11:33

















          • Thank you for your advice. Could you give me a hint how to add and push tags in sub-repos?

            – Jiri Mihal
            Mar 29 at 0:20











          • I can push tags to sub-repo, but to do so, I have to split sub-repo from main repo to separate folder. In this folder I can use git tag 1.0 -> git push --tags to add and push tags to sub-repo. Is there some simpler way?

            – Jiri Mihal
            Mar 29 at 11:33
















          Thank you for your advice. Could you give me a hint how to add and push tags in sub-repos?

          – Jiri Mihal
          Mar 29 at 0:20





          Thank you for your advice. Could you give me a hint how to add and push tags in sub-repos?

          – Jiri Mihal
          Mar 29 at 0:20













          I can push tags to sub-repo, but to do so, I have to split sub-repo from main repo to separate folder. In this folder I can use git tag 1.0 -> git push --tags to add and push tags to sub-repo. Is there some simpler way?

          – Jiri Mihal
          Mar 29 at 11:33





          I can push tags to sub-repo, but to do so, I have to split sub-repo from main repo to separate folder. In this folder I can use git tag 1.0 -> git push --tags to add and push tags to sub-repo. Is there some simpler way?

          – Jiri Mihal
          Mar 29 at 11:33




















          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%2f55406487%2fpush-tags-with-git-subtree-push%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

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현