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;
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
add a comment
|
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
add a comment
|
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
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
git subtree
asked Mar 28 at 20:39
Jiri MihalJiri Mihal
588 bronze badges
588 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
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.
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 usegit 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
add a 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/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
);
);
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%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
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.
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 usegit 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
add a comment
|
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.
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 usegit 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
add a comment
|
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.
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.
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 usegit 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
add a comment
|
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 usegit 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
add a 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%2f55406487%2fpush-tags-with-git-subtree-push%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