Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><code>git rebase</code> is working correctly. It is protecting your untracked file from being destroyed while visiting a commit that wants to write out a file with that same pathname.</p> <p>There does not seem to be a way to retry just the most recent step of the rebase. Usually when a rebase pauses, it will leave conflicts in the index. But in this case, it can not flag this problem in the index because doing so would convert your untracked file into a tracked file. This is probably a bit of a rough spot in the UI of <code>git rebase</code>. You could dig into the directory it uses to store its internal state (<code>.git/rebase-apply</code>) and manually apply the “current” patch, but aborting and restart is probably easier (but maybe not faster if you are in the middle of rebasing a very long series).</p> <hr> <p>If the addition of <code>bar.txt</code> is considered a mistake, then you might consider using <code>git rebase -i</code> to tease apart and drop the addition and removal of <code>bar.txt</code> since you are rewriting history anyway.<br> You will still run into the conflict, but the methods below can also be applied with <code>git rebase -i</code>. The script at the end would have to be split into two parts (“setup <code>temp/</code>” and “incorporate rebase result” since an interactive rebase will usually require multiple commands between those two sections.</p> <hr> <p>Move the conflicting file aside temporarily and redo the rebase.</p> <pre><code>mv bar.txt +bar.txt git rebase --abort git rebase master </code></pre> <p>If you expect many such conflicting files then you might consider doing your rebase in a separate clone where you can be certain that you will not have any untracked files. Perhaps the trickiest part is checking that your untracked files do not conflict with the result of the rebase (the <code>git checkout rebased-topic</code> accomplishes this; it aborts if the untracked files conflict with the rebase result).</p> <pre><code>: "Note: will destroy : * 'rebased-topic' branch : * 'temp' directory" ( set -x &amp;&amp; : '*** Clearing temp/' &amp;&amp; rm -rf temp/ &amp;&amp; : '*** Making sure we have topic checked out' &amp;&amp; git checkout topic : '*** Cloning into temp/' &amp;&amp; git clone . temp &amp;&amp; : '*** Rebasing topic onto master in temp/ clone' &amp;&amp; ( cd temp &amp;&amp; git rebase origin/master ) &amp;&amp; : '*** Fetching rebase result from topic/ into local rebased-topic branch' &amp;&amp; git fetch -f temp topic:rebased-topic &amp;&amp; : '*** Checking rebased-topic for conflicts with untracked files' &amp;&amp; git checkout rebased-topic &amp;&amp; : '*** Resetting topic to tip of rebased-topic' &amp;&amp; git branch -f topic rebased-topic &amp;&amp; : '*** Returning to topic branch' &amp;&amp; git checkout topic &amp;&amp; : '*** Deleting rebased-topic branch' &amp;&amp; git branch -d rebased-topic &amp;&amp; : '*** Deleting temp/' &amp;&amp; rm -rf temp/ ) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload