You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have 3 branches: M, X, Y.
m.txt
, branches X and Y branched off from M, they have their own filesx.txt
in branch X,y.txt
in branch Y, andm.txt
in both.m.txt
: 2 commits in M, 3 commits in X, and 3 commits in Y.How do I move the file
m.txt
and its history of 8 commits to a new branch W?For example:
m.txt changes1
(committed files: m.txt)m.txt changes2
(committed files: m.txt)m.txt changes1
(committed files: m.txt, x.txt)m.txt changes2
(committed files: m.txt, x.txt)m.txt changes3
(committed files: m.txt, x.txt)m.txt changes1
(commited files: m.txt, y.txt)m.txt changes2
(commited files: m.txt, y.txt)m.txt changes3
(commited files: m.txt, y.txt)m.txt changes1
(commited files: x.txt)m.txt changes2
(commited files: x.txt)m.txt changes3
(committed files: x.txt)m.txt changes1
(committed files: y.txt)m.txt changes2
(committed files: y.txt)m.txt changes3
(committed files: y.txt)m.txt changes1
(committed files: m.txt)m.txt changes2
(committed files: m.txt)m.txt changes3
(committed files: m.txt)m.txt changes4
(committed files: m.txt)m.txt changes5
(committed files: m.txt)m.txt changes6
(committed files: m.txt)m.txt changes7
(committed files: m.txt)m.txt changes8
(committed files: m.txt)When I use
git filter-repo --path src/app
, absolutely everything disappears!git version 2.45.1.windows.1
Beta Was this translation helpful? Give feedback.
All reactions