Hi,I don’t know if what I understand is correct:
before :

feaure  master
  |           /
  |      /
 (tag1)
|     \
|     patch

now you commit at the patch branch and want merge it to tag1 :

feaure  master
 |          /
 |     /                          patch 
(tag1)                   /
|     \                   /
|       \            /


if u use 'git checkout patch 'and 'git merge tag1' ,it's alright.
but now the you find you are in a deatch HEAD, 

may be tag this pointer again will be fine 'git tag tag-2'

finally git graph:
 
    feature master   tag-2 
          \       |          /    \
                tag-1         patch

hope I can help you 。
If there is no misunderstanding.
My English is poor.

--
adlternative
在2021年1月14日星期四 UTC+8 上午3:08:21<philip...@iee.email> 写道:

> So, you now have three branches: master, feature and patch. 
> feature is ahead of master but is missing some fixes that are now on patch 
> (patch is ahead/behind master, that is, has differences both ways).
>
> There is no particular problem merging patch into feature - you should get 
> those extra changes without any real problem.
>
> The 'however' is what to do about master, which doesn't have the fixes 
> that are on patch. Only you can decide if you want or need those fixes also 
> to be merged into master. Once decided, it's easy to merge if required.
>
> OK?
> P.
>
>
>
> On Tuesday, January 12, 2021 at 11:09:27 PM UTC gaston.g...@web.de wrote:
>
>> Hello,
>>
>> Is it possible to re-merge a branch after it has been merged and the 
>> merged branch has also been modified.
>>
>> In detail:
>>
>> I created a branch from the master branch for a patch.(let's call it 
>> "patch")  In that patch I intrroduced also some small modifications which 
>> are necessary for the next "feature" branch. 
>>
>> Th ereason I did this is that first these changes are not really part of 
>> the feature but required for it, and it was exactely the area I had to 
>> change anyway so not introducing these changes like this was like writing 
>> some useless code which would have to be reedited and replaced in the 
>> feature branch.
>>
>> Later, while working on the feature branch I realized that the changes 
>> done for it were not correct (working in the patch but not as expected for 
>> the feature). 
>>
>> I could now of course just reedit th efeature and change it, but I 
>> preferr to change it in the "patch" branch and re-merge.
>>
>> Curse of action (git only, you understand that some editing took place 
>> in-between):
>>
>>
>>    1. Created branch "patch" from "master"
>>    2. Merged "patch" int master
>>    3. Created tag "tag-1"
>>    4. created branch "feature" from master
>>    5. switched to "patch"
>>    6. edited the patched area to also fit the later feature
>>
>> Now I would like to re-merge "patch" as it is now after the last edit at 
>> the same place it was where it was merged before (at tag-1) instead of 
>> merging it again at the current timeline position of my feature branch.
>>
>> Is this possible ?
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/4c6ae113-fa27-4340-b9f9-b621ddbb1518n%40googlegroups.com.

Reply via email to