How do I apply this revert commit patch from git?

nLinked

I have found a patch applicable to my system to fix a problem but I have no idea how to get this patch and then apply it. Can anybody help me please?

Patch: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c11e5f35ab490bd30591563816fbc83526521777

spuder

First, download the patch. There is a handy patch button on the link you indicated. Say for instance, you saved it to /tmp/foo.patch

cd into the source directory and run the following

cd drivers/gpu/drm/i915/intel_pm.c  
patch -p1 < /tmp/foo.patch

You could alternatively use git-am to create and apply the patch. Assuming you have checked out the linux kernel. https://www.kernel.org/pub/software/scm/git/docs/git-am.html

Resources

Applying Patches
Building Kernel

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How do I "un-revert" a reverted Git commit?

From Java

How do I revert a Git repository to a previous commit?

From Dev

How do I apply changes from a specific Git commit somewhere else in the commit tree?

From Dev

How can I revert back to a Git commit?

From Dev

How do I revert a commit only locally?

From Dev

How do i revert a commit and uncommit (?) a file?

From Dev

How do I apply a patch?

From Dev

Failed patch changed my Git Bash prompt, how do I revert it?

From Dev

Failed patch changed my Git Bash prompt, how do I revert it?

From Java

How do I use 'git reset --hard HEAD' to revert to a previous commit?

From Java

How to revert initial git commit?

From Dev

How to revert a unpushed git commit

From Dev

How do I revert a pushed commit back to being unstaged?

From Dev

Using git diff, how can I show the patch from the index to a given commit?

From Java

How do I create a new Git branch from an old commit?

From Dev

How do I eliminate a commit and it's changes from git history?

From Dev

How to revert a specific file in a old commit on git

From Dev

Git + Intellij - How to revert a local commit?

From Dev

revert the git last commit and apply it to github for deployment scripts

From Dev

How do I revert to a previous git in R studio?

From Dev

Do not commit specific changes to the git, but also don't revert them from my local workspace

From Dev

Intellij git revert a commit

From Dev

How can I revert specific files of a commit?

From Dev

How do I apply a patch that contains a file that doesn't exist?

From Dev

Problem with nVidia drivers (how do I apply a patch)?

From Dev

How do I apply a patch that contains a file that doesn't exist?

From Dev

How can i revert a git commit --amend -m without losing my original hashcode and the code i supposed to commit?

From Dev

How to revert a change from older commit in `magit`?

From Java

How do I git rebase the first commit?

Related Related

  1. 1

    How do I "un-revert" a reverted Git commit?

  2. 2

    How do I revert a Git repository to a previous commit?

  3. 3

    How do I apply changes from a specific Git commit somewhere else in the commit tree?

  4. 4

    How can I revert back to a Git commit?

  5. 5

    How do I revert a commit only locally?

  6. 6

    How do i revert a commit and uncommit (?) a file?

  7. 7

    How do I apply a patch?

  8. 8

    Failed patch changed my Git Bash prompt, how do I revert it?

  9. 9

    Failed patch changed my Git Bash prompt, how do I revert it?

  10. 10

    How do I use 'git reset --hard HEAD' to revert to a previous commit?

  11. 11

    How to revert initial git commit?

  12. 12

    How to revert a unpushed git commit

  13. 13

    How do I revert a pushed commit back to being unstaged?

  14. 14

    Using git diff, how can I show the patch from the index to a given commit?

  15. 15

    How do I create a new Git branch from an old commit?

  16. 16

    How do I eliminate a commit and it's changes from git history?

  17. 17

    How to revert a specific file in a old commit on git

  18. 18

    Git + Intellij - How to revert a local commit?

  19. 19

    revert the git last commit and apply it to github for deployment scripts

  20. 20

    How do I revert to a previous git in R studio?

  21. 21

    Do not commit specific changes to the git, but also don't revert them from my local workspace

  22. 22

    Intellij git revert a commit

  23. 23

    How can I revert specific files of a commit?

  24. 24

    How do I apply a patch that contains a file that doesn't exist?

  25. 25

    Problem with nVidia drivers (how do I apply a patch)?

  26. 26

    How do I apply a patch that contains a file that doesn't exist?

  27. 27

    How can i revert a git commit --amend -m without losing my original hashcode and the code i supposed to commit?

  28. 28

    How to revert a change from older commit in `magit`?

  29. 29

    How do I git rebase the first commit?

HotTag

Archive