Cannot pull into a repository with state: REBASING_MERGE
I'm running into a situation where I'm unable to deploy to one of my target branches and getting an error
Cannot pull into a repository with state: REBASING_MERGE
I did do a force push to the branch (Branch B) and attempted to go back to the original commit hash but this error still appears.
Oddly enough, it is now impacting my commit branch (Branch A) for another org and I'm unable to find a workaround for it. Branch A was not rebased at any point but I did attempt to get Branch B on the same commit hash as A.
Attempting to make a whole new git configuration with new branches is also not working for me. In those cases I'm getting "Conflict" errors even though there should be no difference between the content since the branches are on the same commit. I'm pretty stuck now with no way to resolve this problem.
Is there any way to clear this "Rebasing Merge" stage?
3 Replies
@Srikanth Jandhyala can you help here?
Hey @shikharTS ,
Here are the steps to resolve this issue:
Approach 1:
- Connect to the backend and install Git CLI on the cluster.
- Navigate to the path /export/<Folder that starts with x>/git.
- Run the command git branch. You should see a detached branch, as a rebase is currently in progress.
- Run the following commands:
git rebase --abort git reset --hard HEAD^After completing these steps, retry the operation the customer was performing. This should resolve the issue. We have fixed this issue by 10.4 onwards which can ease the process Approach 2 (Available from version 10.4 onwards): - Connect to the customer's local terminal. - Run the following command, which will be available from version 10.4 onwards: - curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' 'http://172.32.91.150:8088/callosum/v1/v2/vcs/git/abort-rebase' After completing these steps, retry the operation the customer was performing. This should resolve the issue.
Thanks! This resolved the problem