简体   繁体   English

回购所有硬重置标签问题

[英]repo forall hard reset tag issue

I am not able to appreciate git reset hard concept because of following issue: 由于以下问题,我无法欣赏git reset hard概念:

Consider the repository structure: 考虑存储库结构:

Android>A 安卓> A

A>B A> B

A>C A> C

A>D A> D

(B,C,D are child branch of A and have .git in them) (B,C,D是A的子分支,并且其中包含.git)

in linux putty terminal I did this: 在Linux油灰终端中,我这样做:

cd Android/A cd Android / A

cd C 光盘

C: git describe C:git描述

Shows -> YesterdayTag (that's ok, now I want to change every .git to "tagLatest" 显示-> YesterdayTag(没关系,现在我想将每个.git更改为“ tagLatest”

cd .. 光盘..

cd B 光盘

B: git describe B:git描述

Shows -> YesterdayTag (cool, now I want to change this and every other .git ) 显示-> YesterdayTag(很酷,现在我想更改此名称以及其他.git)

B: repo forall -c git reset --hard tagLatest B:全部回购-c git reset --hard tag最新

B: git describe B:git描述

Shows--> tagLatest (correct this is what I expect!, however see below) 显示-> tagLatest(更正这是我所期望的!但是请参见下文)

cd .. 光盘..

cd C 光盘

C: git describe C:git描述

still shows-> yesterDayTag , I expect repoforall to change every .git to "tagLatest" 仍然显示-> yesterDayTag,我希望repoforall将每个.git更改为“ tagLatest”

Please let me know if you have any clue. 如果您有任何线索,请告诉我。 Thank you much. 非常感谢

these are not branches that you are talking about. 这些不是您正在谈论的分支。 You have nested git repositories. 您已经嵌套了git存储库。 You better have the tag across all repos if you want the reset to work. 如果您希望重置工作,最好在所有存储库中都具有标签。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM