UV unvrapping same faces with same texture pixels

Hello,I basically want to unwrap the same faces(of a cube for example) so when I paint one paint it paints all others.
Here is an example of my goal :
https://www.youtube.com/watch?v=L7ALfRw6I5I&t=75s

I’m the author of that video. I just unwrapped each side and stacked them on each other. I went into more detail on UV unwrapping in this video:

Thank you very much