Skip to content

Instantly share code, notes, and snippets.

@luzpaz
Last active December 18, 2020 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luzpaz/560e092fcea6c425959e46fed79f941f to your computer and use it in GitHub Desktop.
Save luzpaz/560e092fcea6c425959e46fed79f941f to your computer and use it in GitHub Desktop.
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