Skip to content

Instantly share code, notes, and snippets.

@luzpaz
Last active December 18, 2020 01:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Linux tips/tricks
  • Patching from https://.patch file

    curl https://github.com/GNOME/gimp/compare/master...luzpaz:typos.diff | git apply -v
    
  • Patching a FreeCAD workbench from a PR

    cd ~/.FreeCAD/Mod/sheetmetal/
    git fetch 
    curl -ss https://patch-diff.githubusercontent.com/raw/shaise/FreeCAD_SheetMetal/pull/146.patch | git apply
    
  • Creating a patch

    git format-patch master --stdout > name.patch
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment