Apply a patch on the clipboard to the current Git/Hg repo:
pbpaste | patch -p1
Or, if the trailing "\n" is missing:
pbpaste | xargs -0 echo | patch -p1
Apply a patch on the clipboard to the current Git/Hg repo:
pbpaste | patch -p1
Or, if the trailing "\n" is missing:
pbpaste | xargs -0 echo | patch -p1