About 10,900,000 results
Open links in new tab
  1. svn - Apply failed hunk with TortoiseSVN - Stack Overflow

    May 4, 2015 · How can I apply a patch with TortoiseSVN that initially fails with one or more rejected hunks? Is it possible to use TortoiseMerge to review the patch/the failed result and …

  2. During `git add -p`, I get error: hunks do not overlap

    Oct 6, 2022 · I executed a git add -p and got to a file with a fairly large diff hunk, so I hit "s" to split it and I got this in my editor: # Manual hunk edit mode -- see bottom for …

  3. In the context of git (and diff), what is a "hunk" - Stack Overflow

    Jun 6, 2017 · I was looking for a definition of "hunk" while reading some git documentation. I know it means a description of the difference between two files and that it has a well defined format, …

  4. git apply fails with "patch does not apply" error - Stack Overflow

    The --reject option will instruct git to not fail if it cannot determine how to apply a patch, but instead to apply the individual hunks it can apply and create reject files (.rej) for hunks it cannot apply.

  5. git - VS Code: How to stage and commit individual changes in a …

    Jan 12, 2016 · Visual Studio Code has excellent Git integration, but I can't find a way to partially stage changes like with git add --interactive or git add --patch. Basically, I want to be able to …

  6. Increase git hunk granularity - Stack Overflow

    Jan 5, 2016 · How can I increase the granularity of the hunks, such that every block of code will be in a separate hunk? Edit: This is a different question from Git: show more context when …

  7. Undo part of unstaged changes in git - Stack Overflow

    Jan 20, 2016 · In Magit, you can run magit-status, find the diffs for the changes that you want to revert, select the lines you wish to revert (or simply put the cursor on hunks you wish to revert …

  8. Sourcetree Stage hunk button missing - Stack Overflow

    Jul 9, 2018 · If I select the updated file, the changes show in hunks, however, the "stage hunk" button is not showing (only reverse hunk is showing). I'm using version 2.4.6.0 of Sourcetree.

  9. Git command line equivalent of Sourcetree's reverse hunk …

    Sourcetree has options to reverse commits and also reverse hunks. It's able to diff two commits and reverse hunks in said diff. Although it can fail if the working directory isn't clean or if you …

  10. How do I reverse a specific hunk of a commit in git?

    Jul 16, 2014 · For example, to selectively revert changes made in the last commit, use HEAD^. This question was already answered by @cdhowie, but I find it somewhat nicer to use an …