Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>See <a href="https://www.kernel.org/pub/software/scm/git/docs/git-merge.html" rel="nofollow noreferrer">man git merge</a> (<em>HOW TO RESOLVE CONFLICTS</em>):</p> <blockquote> <p>After seeing a conflict, you can do two things:</p> <ul> <li><p>Decide not to merge. The only clean-ups you need are to reset the index file to the HEAD commit to reverse 2. and to clean up working tree changes made by 2. and 3.; git-reset --hard can be used for this. </p></li> <li><p>Resolve the conflicts. Git will mark the conflicts in the working tree. Edit the files into shape and git add them to the index. Use git commit to seal the deal.</p></li> </ul> </blockquote> <p>And under <em>TRUE MERGE</em> (to see what 2. and 3. refers to):</p> <blockquote> <p>When it is not obvious how to reconcile the changes, the following happens:</p> <ol> <li><p>The HEAD pointer stays the same. </p></li> <li><p>The MERGE_HEAD ref is set to point to the other branch head. </p></li> <li><p>Paths that merged cleanly are updated both in the index file and in your working tree.</p></li> <li><p>...</p></li> </ol> </blockquote> <p>So: use <code>git reset --hard</code> if you want to remove the stash changes from your working tree, or <code>git reset</code> if you want to just clean up the index and leave the conflicts in your working tree to merge by hand.</p> <p>Under <a href="https://www.kernel.org/pub/software/scm/git/docs/git-stash.html" rel="nofollow noreferrer">man git stash</a> (<em>OPTIONS, pop</em>) you can read in addition:</p> <blockquote> <p>Applying the state can fail with conflicts; in this case, it is not removed from the stash list. You need to resolve the conflicts by hand and call git stash drop manually afterwards.</p> </blockquote>
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. 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