I found this while googling for the issue: http://data.agaric.com/git-apply-does-not-work-from-within-local-checkout-unrelated-git-repository
git apply
will fail to do anything when used within a local checkout of a git repository (other than the one for the project the patch is made for), such as if you are patching a module that is within a site that is in Git version control.Use
patch -p1 < path/file.patch
instead.
Related Contents:
- How can I generate a Git patch for a specific commit?
- How to change line-ending settings
- How do you copy and paste into Git Bash
- How do I exit the results of ‘git diff’ in Git Bash on windows? [duplicate]
- How do I force git to use LF instead of CR+LF under windows?
- Git Bash is extremely slow on Windows 7 x64
- git: patch does not apply
- How to move certain commits to be based on another branch in git?
- fatal: early EOF fatal: index-pack failed
- How do I remove msysgit’s right click menu options?
- git: ‘credential-cache’ is not a git command
- How to apply `git diff` patch without Git installed?
- Trying to fix line-endings with git filter-branch, but having no luck
- SSH Private Key Permissions using Git GUI or ssh-keygen are too open
- Create patch or diff file from git repository and apply it to another different git repository
- Can I split an already split hunk with git?
- How do I use Notepad++ (or other) with msysgit?
- How do I simply create a patch from my latest git commit?
- What is the difference between git am and git apply?
- How do you squash commits into one patch with git format-patch?
- Change the location of the ~ directory in a Windows install of Git Bash
- How can I visualize per-character differences in a unified diff file?
- How to apply a Git patch to a file with a different name and path?
- What does “1 line adds whitespace errors” mean when applying a patch?
- use Winmerge inside of Git to file diff
- What is the difference between ‘git format-patch and ‘git diff’?
- github: No supported authentication methods available
- Escape @ character in git proxy password
- How to apply a git patch from one repository to another?
- Where do the settings in my Git configuration come from?
- Git for Windows – The Program can’t start because libiconv2.dll is missing
- Can Git treat ZIP files as directories and files inside the ZIP as blobs?
- Git error: previous rebase directory .git/rebase-apply still exists but mbox given
- Msysgit bash is horrendously slow in Windows 7
- git hunk edit mode – how to remove a ‘-‘ line?
- Git under windows: MSYS or Cygwin?
- In git, how do I create a single patch for the last 2+ revisions?
- How to create patch between two tags with multiple commits between them?
- Create a patch including specific files in git
- Which is the smarter git protocol, ssh or git(over ssh) or https protocol?
- git create patch with diff
- git: generate a single patch across multiple commits
- Creating a patch file from a diff of 2 folders
- How to apply SVN diff to Git?
- How to create a patch without commit in Git?
- Configure Git to use Plink
- Git: How can I find a commit that most closely matches a directory?
- Git apply skips patches
- git, msysgit, accents, utf-8, the definitive answers
- Git 1.6.4 beta on Windows (msysgit) – Unix or DOS line termination