'Git: First rewinding head to replay
I am getting this message:
First, rewinding head to replay your work on top of it...
each time I do a git pull --rebase origin <branch>, however I would like to discard all my work that may be replayed on top of it.. Basically I would like to rebase only the origin branch without my work on top of it.
How can I clean those commits that comes up wrongly all times I try to pull rebase?
Again, my goal is just pull rebase the exact snapshot of the origin branch without my work on top of it.
Thanks in advance.
Solution 1:[1]
I have 3 branchs?main?feat-dev?func??feat-dev from main?func from feat-dev?
I use these step:
- on func, git rebase origin/feat-dev; git push --force;
- on feat-dev, git rebase origin/main; git push --force;
- on func, git rebase origin/feat-dev.
git tell me same messages: "First, rewinding head to replay your work on top of it..."
On func, I just use
git push --force
Then everything goes fine.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ??????? |
