Yes you can.
However creating github or gitlab (or any other version control repository), and making it public, is sharing assets. And its grey area. For eg creating indie team and collaborating on some project, where not everybody has his/her own copy of assets. You are technically sharing assets outside of your game. So for that reason for eg. i cannot share my github projects that are in portfolio, only pictures/movies.