I have a very simple bash function for this (filecontens), including ignoring files based on gitignore & binary files etc.
Piped to clipboard and done.
All these other ways seem unnecessarily complicated...
All these other ways seem unnecessarily complicated...
Can you share your function, please?